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]+'&amp;Querystring2='+v[2]+'&amp;Querystring3='+v[1]); });
                   

}" />

Comments

Popular Posts