Home All Groups Group Topic Archive Search About

Asp.Net Equilivant of Me.Name

Author
17 Dec 2006 4:25 PM
Larry Rebich
Is there an Asp.Net equilvant of VB6's Me.Name? And hopefully it will
contain the path of the page.

What I want to do is use the name as the return page from a called page. I'd
like to write something like:

'Calling page:
Save me.name in Cookie
Call SomePage
--------
'Called SomePage
Do Stuff
Get me.name from Cookie
Return to me.name

Or is there a better way to do this?

Thanks,
Larry

Author
17 Dec 2006 7:23 PM
Rad [Visual C# MVP]
On Sun, 17 Dec 2006 16:25:07 GMT, Larry Rebich wrote:

Show quoteHide quote
> Is there an Asp.Net equilvant of VB6's Me.Name? And hopefully it will
> contain the path of the page.
>
> What I want to do is use the name as the return page from a called page. I'd
> like to write something like:
>
> 'Calling page:
> Save me.name in Cookie
> Call SomePage
> --------
> 'Called SomePage
> Do Stuff
> Get me.name from Cookie
> Return to me.name
>
> Or is there a better way to do this?
>
> Thanks,
> Larry

Have a look at the following properties o the request object and see if
they can do what you are looking for

- Path
- RawURL
- URL

Bookmark and Share