Click here to Skip to main content
15,885,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i submit the details redirecting to the result page (Response.Redirect(url,false);)but is not woking
not at all redirect to url page.pls find the solution


Thnaks in adv
rahul,
[EDIT]: Personal info removed
Posted
Updated 7-Oct-17 5:47am
v2
Comments
naveen pallela 28-Aug-13 2:55am    
i have also kept thread abort exception in the catch block
Thomas Daniels 28-Aug-13 2:56am    
Can you show your code please?
naveen pallela 28-Aug-13 3:07am    
HttpContext.Current.ApplicationInstance.CompleteRequest();
Response.Redirect("QuickQuote_4wheelerResult.aspx", false);
naveen pallela 28-Aug-13 3:07am    
LogText.LOG_MESSAGE = string.Format("Service(s) called successfully and returned the response for QuickQuote Ref No:{0}.", isValid);
LogText.Print_Log_Values(log, LogText.LOG_MESSAGE, false);
HttpContext.Current.ApplicationInstance.CompleteRequest();
Response.Redirect("QuickQuote_4wheelerResult.aspx", false);

}
else
{
LogText.LOG_MESSAGE = string.Format("Error received from BL.Unable process further.");
LogText.Print_Log_Values(log, LogText.LOG_MESSAGE, true);

lblresult.Text = "Error Occured while processing";
lblresult.ForeColor = System.Drawing.Color.Red;
}
}
catch (Exception ex)
{
if (!(ex is System.Threading.ThreadAbortException))
{
LogText.LOG_MESSAGE = string.Format("Exception occured while geeting Quick Quote and the ERROR is: {0}.", ex.Message);
LogText.Print_Log_Values(log, LogText.LOG_MESSAGE, true);
lblresult.Text = ex.Message;
}
}
}
muneebalikiyani 28-Aug-13 3:16am    
Response.Redirect("~/QuickQuote_4wheelerResult.aspx", false);

 
Share this answer
 
Comments
naveen pallela 28-Aug-13 3:16am    
when i keep response.redirect(url,true) it goes to the catch block and in catch block i put thread abort exception also but the page is not redirecting to the result pagee
The issue is because of an error on the redirected page which is using a Master page.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900