What will happen when we are using Server.Transfer and want to do some task on another page but by some reasons task get failed like userid has been blocked in this situation what will happen?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s always advisable to use the Server.Transfer when moving from one page to another in asp.net. If you use the Transfer method which make sure that all the object stored in the session and application scope are remain unchanged.
But if you are using asp.net ajax enabled page then Server.Transfer doesn’t serve it purpose. You need to use the Response.Redirect instead of Server.Transfer in the asp.net ajax enabled pages.