-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: SwimmableMadan
Message 1 in Discussion
Hi, My question is in ASP.Net. I am adding a table at runtime. Within that table I
am addding array of ImageButtons. Now I want to write "onClick" event for that
buttons. I have the sample to call the "javascript" function. see the following code
snippet: TableRow newRow = new TableRow();
DesignTable.Rows.Add(newRow); ImageButton[] editBtnArray = new
ImageButton[rowCount];
editBtnArray[i] = new ImageButton();
editBtnArray[i].ImageUrl = Server.MapPath("images/edit_off.gif");
TableCell tCell2 = new TableCell();
tCell2.Controls.Add(editBtnArray[i]); tCell2.Attributes["onClick"] =
"javascript:window.alert('hai')";
newRow.Cells.Add(tCell2); In the "onClick" event I need to call an ASP.Net
function. Also I need to retrieve the clicked button's ID or Name. Can anyone help
me how to do this? Thanks & Regards Madan
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]