try...catch...finally...bloggg....: Finding the name of the page after a server.transfer

try...catch...finally...bloggg....

Wednesday, April 20, 2005

Finding the name of the page after a server.transfer

I have a reset button control which resets all the form elements by sending a new request to the same page as which the button is placed. I was initially getting the filename using the Request.PathInfo variable. Everything was working fine untill one fine morning we were changing the Response.Redirects to Server.Transfer. Apparently after the Server.Transfer the Request.PathInfo was returning the previous page info and my reset was redirecting to it. Now I use Request.CurrentExecutionFilePath and the reset works proper.

0 Comments:

Post a Comment

<< Home


·