Wednesday, 21 January 2015

How to open link in new window using Response.Redirect ?


 <asp:LinkButton ID="lbndemo" runat="server"
             ForeColor="Blue"  Text="View"
             CommandArgument="<%# CType(Container, GridViewRow).RowIndex %>"                                             CommandName="View"  
            OnClientClick="aspnetForm.target ='_blank';">
        </asp:LinkButton>


code Behind:

 Response.Redirect("demo.aspx")

No comments:

Post a Comment