Sunday 8 June 2014

Open new tab in asp.net code behind

//HTML

<asp:Button ID="Button1" runat="server" Text="Button" 
onclick="Button1_Click" 
OnClientClick ="document.forms[0].target = '_blank';" />



//Code Behind


protected void Button1_Click(object sender, EventArgs e)
    {
        string newtabl = @"~/FrmNewContent.aspx";
        Response.Redirect(newtabl);       
    }

No comments:

Post a Comment

Excel Sort values in ascending order using function TEXTJOIN

 Excel ::  Text ::  1,3,5,2,9,5,11 Result :: 1,2,3,5,5,9,11 Formula ::     TEXTJOIN ( ",",1,SORT(MID(SUBSTITUTE( A1 ,","...