i want to save id from datagrid colomn.and use this value on other page .
-
hey friend i am working with datagrid.i want to save id from datagrid colomn.and use this value on other page . i save the value in this form Protected Sub Grdplace_RowDataBound(ByVal sender As Object, ByVal e e.Row.Attributes.Add("onclick", "test('" & e.Row.Cells(0).Text.ToString & "')") but it ot sucees fulll
Piyush Vardhan Singh Programmer TAS NewDelhi 9313077379
-
hey friend i am working with datagrid.i want to save id from datagrid colomn.and use this value on other page . i save the value in this form Protected Sub Grdplace_RowDataBound(ByVal sender As Object, ByVal e e.Row.Attributes.Add("onclick", "test('" & e.Row.Cells(0).Text.ToString & "')") but it ot sucees fulll
Piyush Vardhan Singh Programmer TAS NewDelhi 9313077379
Instead of adding onclick event in RowDataBound, try adding it in ItemCreated one..... Try like this : private void Grdplace_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { e.Item.Attributes.Add("onClick","RowClicked('"+ e.Item.Cells[0].Text +"')"); } I've used c#.net,Please cahnge as VB.NET