Results 1 to 3 of 3

Thread: Question in ASP.Net

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    11

    Smile Question in ASP.Net

    Hi all,
    I am new to the world of ASP.Net programming and i want to know if i am on a page isthere is anyway to know the url or the previous page to it.

    ie for example if my application is 3 pages and i am on the page number 3
    how i know if i came to it by page 1 or page 2.

    thanks in advance.

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Question in ASP.Net

    This is something you would track behind the scenes, perhaps in a session variable.

  3. #3
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: Question in ASP.Net

    Also, if they got directed to your site/page through a link:
    VB Code:
    1. If Not Page.Request.UrlReferrer Is Nothing Then
    2.             Response.Write(Page.Request.UrlReferrer.AbsoluteUri)
    3.         End If
    Will give you info about the source page.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width