Dynamic Button

Results 1 to 2 of 2

Thread: Dynamic Button

  1. #1
    Join Date
    Dec 1969

    Default Dynamic Button

    When you create a button dynamically on the server side, how do you set the "onclick" event to postback to the server?<BR>I&#039;m using: button.attributes.add("onclick", "function")<BR>but that is not working. Any suggestions?<BR>Essesntially, this is what i&#039;m trying to get:<BR>&#060;asp:Button Runat=server OnClick="function" Text="Submit" ID="button"/&#062;

  2. #2
    Join Date
    Dec 1969

    Default RE: Dynamic Button

    may be you can do one thing..........you can add a panel then in that panel you can add button<BR><BR>after setting all its properties.......like<BR>button1.OnClick = "fucntion";<BR><BR>regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts