> how to get the filename of the current page?

Check out the Request.Url property. It is a Uri object, and you can get all
kinds of information about the URL from it.
> if it is posted from another aspx, how to get the previous url?
Request.ServerVariables["HTTP_REFERER"]

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
[url]http://www.takempis.com[/url]
Big things are made up of
lots of Little things.

"halogen" <pi@pi.edu> wrote in message
news:OSQcH0nPDHA.1556@TK2MSFTNGP10.phx.gbl...
> how to get the filename of the current page?
>
> if it is posted from another aspx, how to get the previous url?
>
>