Home All Groups Group Topic Archive Search About
Author
10 Jul 2006 9:21 PM
Ros
Hey peeps... i'm using vb with a file.aspx.vb

I want to return the html address of the file that is running... example


when file.aspx is run for say http://mysite/file.aspx

i want the code with in fil.aspx.vb to return where the site address is
comming from. meaning return http://mysite as a string.


i've search the object browser for key words such as "url", "uri",
"webbrowser" etc... but i just want a simple code to return the address.


Please help... any/none is appreciated.


Thanks in advance.

Author
10 Jul 2006 10:35 PM
Travis Sharpe
Ros wrote:
Show quoteHide quote
> Hey peeps... i'm using vb with a file.aspx.vb
>
> I want to return the html address of the file that is running... example
>
>
> when file.aspx is run for say http://mysite/file.aspx
>
> i want the code with in fil.aspx.vb to return where the site address is
> comming from. meaning return http://mysite as a string.
>
>
> i've search the object browser for key words such as "url", "uri",
> "webbrowser" etc... but i just want a simple code to return the address.
>
>
> Please help... any/none is appreciated.
>
>
> Thanks in advance.

Try using the Request object:
Request.FilePath
Author
11 Jul 2006 1:58 PM
Ros
Travis,

Thank you for point me to the right direction...

the code was "request.Url.OriginalString"

Thanks again.


Ros

Show quoteHide quote
"Travis Sharpe" wrote:

> Ros wrote:
> > Hey peeps... i'm using vb with a file.aspx.vb
> >
> > I want to return the html address of the file that is running... example
> >
> >
> > when file.aspx is run for say http://mysite/file.aspx
> >
> > i want the code with in fil.aspx.vb to return where the site address is
> > comming from. meaning return http://mysite as a string.
> >
> >
> > i've search the object browser for key words such as "url", "uri",
> > "webbrowser" etc... but i just want a simple code to return the address.
> >
> >
> > Please help... any/none is appreciated.
> >
> >
> > Thanks in advance.
>
> Try using the Request object:
> Request.FilePath
>