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

GRIDVIEW ON ROW DATA BOUND EVENT

 Database Create  Student : roll , name , city , cost  Fix 6 Value  in Database Record  ====================================================...