|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
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 wrote:
Show quoteHide quote > Hey peeps... i'm using vb with a file.aspx.vb Try using the Request object:> > 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. Request.FilePath 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 > |
|||||||||||||||||||||||