Sunday, September 16, 2018

Query string using response.redirect function

Button Click Event :

Response.Redirect("Default3.aspx?roll=" + TextBox2.Text);


Response.Redirect("Default2.aspx?UserId="+txtUserId.Text+" 
                             
                                &UserName="+txtUserName.Text);
protected void Page_Load(object sender, EventArgs e)
    {
       

        if (Request.QueryString.Count > 0)
        {

            TextBox1.Text=Request.QueryString["roll"];


        }

}

No comments:

Post a Comment

JAVA SCRIPT POPUP C#

 ScriptManager.RegisterStartupScript(this,this.GetType(),"Popup","alert('Welcome to NRsolution4u!');",true);