URL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ros

    #1

    URL

    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.
  • Travis Sharpe

    #2
    Re: URL

    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.FilePat h

    Comment

    • Ros

      #3
      Re: URL

      Travis,

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

      the code was "request.Url.Or iginalString"

      Thanks again.


      Ros

      "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.FilePat h
      >

      Comment

      Working...