Hi,
I have following code in a gridview image button that passes some paramters to a javascript function.
Here is the javascript function in the head tag of the page:
function ShowPage(CustName, Address1, Address2, City, State, ZipCode) { window.showModalDialog('customer.aspx?Customer=' + CustName + '&Address1=' + Address1 + '&Address2=' + Address2 + '&City=' + City + '&State=' + State + '&ZipCode=' + ZipCode, window, 'dialogHeight:875px;dialogWidth:850px;center:yes;help:no;resizable:no;status:no');
}
Here is the markup for the image button in the gridview:
<asp:ImageButton ID="Imagebtn1" runat="server" OnClientClick='<%# String.Format("return ShowPage({0},{1},{2},{3},{4},{5});", Eval("CustName"),Eval("Address1"), Eval("Address2"), Eval("City"), Eval("State& ...

Go to the complete details ...