Working with Javascript in Gridview ASP.NET 2.0
For the server side code you have to do the following steps:
In row data bound write the event on which you want to call the javascript.
I have done it for text change event for the textbox. I have passed the row no of the grid and the column name as I wanted to do the column total as well as the row total.
(TextBox)e.Row.FindControl("txtval").Attributes.Add("onchange", "addAll('" + row no + "','" + colname+ "' )");
Thursday, September 11, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment