ravi Gautam

ravi Gautam

  • NA
  • 20
  • 8.6k

response.redirect is not working

Oct 13 2017 6:49 AM
I have response.redirect in my default page but it is not working it is not going to target page and also not passing the value which defined in that function.
 
"default.aspx" page code
 
protected void PrintDetails_Click(object sender, EventArgs e)
{
   Response.Redirect("overview.aspx?val=" + statusvalue.Text);
}
 
below coding is for "overview.aspx"
 
 
protected void Page_Load(object sender, EventArgs e)
{
   if (!this.Page.IsPostBack)
   {
                  binddata();
      showvalue();
   }
}
 
public void showvalue()
{
   string sactual_height = Request.QueryString["val"];
           int iactual_height = Convert.ToInt16(sactual_height);
}
 

Answers (3)