asp.net - Server.Transfer and Getlastwritetime -


I am using asp.net 3.0.

I have to make one server. Page b

On both pages A and Page B, I want to be able to use System.IO.File.GetLastWriteTime (MapPath (Page.Request.Path.ToString ()), last modified at the top of each file Display the date.

This works well on page A, but when I use the server. Transfer to Page B, the page request. Path still refers to Page A Is Page B.

Is there no way to change this? Reversal is the replacement of the redirect. The redirect (the server is important for my other sections of the code on both pages)

Try it instead:

  System.IO.File.GetLastWriteTime (Mappath (App.RepairAccording to AppRelativeCurrentExecutionFilePath))  
< / Div>

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -