Hi,
I'm trying to understand why Response.Redirect causes some of my code to be skipped redirecting to the page assigned. I have a button that when click is supposed to due some date validations and Warranty validations. Both of these work fine without adding Response.Redirect to void btnSubmit_Click. But when I do added to the code it causes some of the code in WarrantyValidation() to not be activated and it completely ignores WarrantyValidation(). Is there a reason for this?
Thanks!!!
private void btnSubmit_Click(object sender, System.EventArgs e)
{
DateValidation();
WarrantyValidation();
Response.Redirect("EnterNewData.aspx");
}
I'm trying to understand why Response.Redirect causes some of my code to be skipped redirecting to the page assigned. I have a button that when click is supposed to due some date validations and Warranty validations. Both of these work fine without adding Response.Redirect to void btnSubmit_Click. But when I do added to the code it causes some of the code in WarrantyValidation() to not be activated and it completely ignores WarrantyValidation(). Is there a reason for this?
Thanks!!!
private void btnSubmit_Click(object sender, System.EventArgs e)
{
DateValidation();
WarrantyValidation();
Response.Redirect("EnterNewData.aspx");
}