Pass grid row values as query strings client side - JS
// Below code has to be written on the .aspx page.Also this is a grid view client side JS function.
//SITEID;SITETYPE;BAND are some of grid view columns key values.
<ClientSideEvents CustomButtonClick="function(s, e) {
s.GetRowValues(e.visibleIndex, 'SITEID;SITETYPE;BAND', function(v){ window.open('PageTOOpen.aspx?Querystring1='+v[0]+'&Querystring2='+v[2]+'&Querystring3='+v[1]); });
s.GetRowValues(e.visibleIndex, 'SITEID;SITETYPE;BAND', function(v){ window.open('PageTOOpen.aspx?Querystring1='+v[0]+'&Querystring2='+v[2]+'&Querystring3='+v[1]); });
}" />
Comments
Post a Comment