<asp:TemplateField ItemStyle-Width="20px" HeaderText="" ItemStyle-HorizontalAlign="Center"> <ItemTemplate> <asp:Button ID="btnview" runat="server" Text="View Detail" OnClientClick='<%#String.Format("return openPopup({0},')", Eval("IN028_01")) %>'> </asp:Button> </ItemTemplate> <ItemStyle HorizontalAlign="Center" Width="20px" /> </asp:TemplateField>
function openPopup(id) { window.open("A1000603.aspx?cid=" + id , "_blank", "WIDTH=1080,HEIGHT=790,scrollbars=no, menubar=no,resizable=yes,directories=no,location=no"); }
<asp:Button ID="btnview" runat="server" Text="View Detail" OnClientClick='<%# Eval("IN028_01","return openPopup({0})") %>'></asp:Button>
<asp:Button ID="btnview" runat="server" Text="View Detail" OnClientClick='<%# Eval("IN028_01","return openPopup(\"{0}\")") %>'>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)