I need to open a popup with gridview (VS 2005/2008). What I'm trying to do is markup for my TemplateColumn, has an asp: Button control, kind of like:
<asp:Button ID="btnShowDetails" runat="server" CausesValidation="false" CommandName="Details" Text="Order Details" onClientClick="window.open('PubsOrderDetails.aspx?OrderId=<%# Eval("order_id") %>', '','scrollbars=yes,resizable=yes, width=350, height=550');"
Of course, what doesn't work is adding the section <% # Eval ...%> to set the query string variable.
Any suggestions? Or is there a much better way to achieve the same result?
Ken ray
source share