asp.net - Referencing items within a gridview -


I have a gridview connected to the ObjectTataSource, I have a bound textbox for input in each row. Next to the text box, there is a button that launches a JavaScript popup for unit conversion.
The question is, how can I tell the unit converter (JS function) to populate the results in which text box (in line)?

In the line event of grid view:

  protected sub MyGridView_RowCreated ( Object as sub-sender, IV.WebControls.GridViewRowEventArgs as a system) MyGridView.RowCreated if E. Rau RowType = DataControlRowType.DataRow then dim = txt = e.row.Cells (1) as the DM btn button = e.Row.Cells (0) .FindControl ("BtnJavaScriptButton") as text box .FindControl ("txtResults" ) Btn.OnClientClick = "count (" & amp; txt.ClientID & amp; ";);" End is the ending sub  

where there are 0 and 1 column indices that have buttons and text boxes, and "count" is the name of your Javascript function.


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -