Ask a Question related to ASP.NET Building Controls, Design and Development.
-
J McD #1
Click event on ImageButton column in a datagrid
Hi
I have a DataGrid with an ImageButton column. When I click on an imagebutton I get a postback but it doesn't run the OnImgBtnClick method. I can actually comment out the line where I add this Click event to the ImageButton Column and it makes no difference, I still get a postback. This is driving me crazy...something seems to be causing an OnClick postback and it isn't my Click event
I've included the code below....any help will be much appreciated as I've been looking at this for a long time and I'm havnig a real problem understanding what's going on
Thanks in advance, John
private void OnImgBtnClick(object sender, EventArgs e
label1.Text="Button Clicked"
public void BindDataGrid(string querytype
J McD Guest
-
How To: handle DataGrid row Click Event that passes rows column values to server-side code behind function
I've looked through many posted messages, and have tried several things but have not seemed to solve this (what you'd think would be a simple)... -
ImageButton Column in DataGrid
I'm trying to add an ImageButton Column into my datagrid, but the Property Designer only allows for plain buttons and link buttons. Is there a way... -
ImageButton in column's HeaderTemplate doesn't generate Click event
I have a datagrid, with a template column containing a CheckBox called chkSelect in the ItemTemplate. Users select rows to edit/delete by checking... -
ImageButton in template column in edit mode don't fire event
Hi, I hava a datagrid with template column, and have one colums for for edit event (edit, delete, update, cancel) but whem i put datagrid in edit... -
ImageButton Event won't fire inside Template column of DataGrid
I have a custom datagrid control created with CreateChildControls() My Image Button Event will not fire so I cannot raise it to the webform. ...



Reply With Quote

