Can i able to create custom buttons with 1 to N numbers? based upon database table record count

Last post 09-19-2005, 2:22 AM by Adam. 4 replies.
Sort Posts: Previous Next
  •  09-14-2005, 11:23 PM 10578

    Can i able to create custom buttons with 1 to N numbers? based upon database table record count

    Hi,
     
    My project , i want to create N numbers of custom button based on the database table record count
     
     
    if suppose my total record is 5 means
     
    i can pass my total numbers to CuteEditor then i can able to create 5 custom buttons?
     
    this is possible?
     
    if yes means can i have asp.net coding help
     
    where can i pass my record count and based upon the total i want to create custom buttons on page load
     
    regards,
    Anbaz.
  •  09-15-2005, 1:27 PM 10629 in reply to 10578

    Re: Can i able to create custom buttons with 1 to N numbers? based upon database table record count

    Anbaz,
     
    Yes, please reference the following example:

    http://cutesoft.net/example/customization.aspx


    I can help you with most questions related to CuteEditor.

     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  09-15-2005, 8:56 PM 10655 in reply to 10629

    Re: Can i able to create custom buttons with 1 to N numbers? based upon database table record count

    Hi,
     
    The Given examples shows me to create custom button in tool bar etc..

    http://cutesoft.net/example/customization.aspx



    but my question is can i create 5 or 6 buttons at a time,  i mean when my page loading time can i able to create 5 custom buttons based on the database table's record count?

    i mean if i give 1 to 5 in for loop, how can i create 5 buttons at toolbar?

    where can i pass my total value and how can i generate in the page load time itself to create number of custom buttons?


    please give coding idea... i want some coding for this

    regards,
    Anbaz.
     
     
  •  09-18-2005, 8:42 PM 10719 in reply to 10655

    Re: Can i able to create custom buttons with 1 to N numbers? based upon database table record count

    Hi,
     
    The Given examples shows me to create custom button in tool bar etc..

    http://cutesoft.net/example/customization.aspx



    but my question is can i create 5 or 6 buttons at a time,  i mean when my page loading time can i able to create 5 custom buttons based on the database table's record count?

    i mean if i give 1 to 5 in for loop, how can i create 5 buttons at toolbar?

    where can i pass my total value and how can i generate custom button in the page load time itself ?

    please give coding idea... i want some coding for this

    regards,
    Anbaz.
     
  •  09-19-2005, 2:22 AM 10726 in reply to 10719

    Re: Can i able to create custom buttons with 1 to N numbers? based upon database table record count

    Anbaz,
     

    Here is the code to add a custom button.
     void Page_Load(object sender, System.EventArgs e)
     {
        CuteEditor.ToolControl tc = Editor1.ToolControls["insertcustombutonhere"];
        if(tc!=null)
        {    
            System.Web.UI.WebControls.Image Image1 = new System.Web.UI.WebControls.Image ();
            Image1.ToolTip    = "Insert today's date";
            Image1.ImageUrl    = "tools.gif";
            Image1.CssClass    = "CuteEditorButton";
            SetMouseEvents(Image1);
            Image1.Attributes["onclick"]="var d = new Date(); CuteEditor_GetEditor(this).ExecCommand('PasteHTML',false,d.toLocaleDateString())";
            tc.Control.Controls.Add(Image1);
        }
     }

    You can just modify the above code to meet your requirements.


     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML