URL

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
Ros said:
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
 
Travis,

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

the code was "request.Url.OriginalString"

Thanks again.


Ros
 
Back
Top