Click here to Skip to main content
15,905,875 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Maintain session in sql server !! Pin
Aman Bhullar2-Sep-09 20:18
Aman Bhullar2-Sep-09 20:18 
QuestionWeb.config Pin
KhandelwalA2-Sep-09 20:03
KhandelwalA2-Sep-09 20:03 
AnswerRe: Web.config Pin
deepseeindeepsy2-Sep-09 20:34
deepseeindeepsy2-Sep-09 20:34 
Questionhow to build drill down crystal reports in visual studio 2005 Pin
smiley_jatin2-Sep-09 19:52
smiley_jatin2-Sep-09 19:52 
QuestionTracking Referral URL Pin
Abbas_here2-Sep-09 19:43
Abbas_here2-Sep-09 19:43 
AnswerRe: Tracking Referral URL Pin
Aman Bhullar2-Sep-09 20:13
Aman Bhullar2-Sep-09 20:13 
GeneralRe: Tracking Referral URL [modified] Pin
Abbas_here2-Sep-09 20:26
Abbas_here2-Sep-09 20:26 
GeneralRe: Tracking Referral URL Pin
Aman Bhullar2-Sep-09 21:55
Aman Bhullar2-Sep-09 21:55 
Value in Request.UrlReferrer.ToString will be null if the page is opened directly.

Try using the below example

Create Page Default2.aspx
protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.UrlReferrer != null)
        {
            string strref = Request.UrlReferrer.ToString();
        }
        Response.Write("<a href='default3.aspx'>Link</a>");
    }


Create Page Default3.aspx
protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.UrlReferrer != null)
        {
            Response.Write(Request.UrlReferrer.ToString());
        }
    }


You will get the Value in the 'UrlReferrer' Property

Regards
Aman Bhullar
www.arlivesupport.com[^]

GeneralRe: Tracking Referral URL Pin
Abbas_here2-Sep-09 23:26
Abbas_here2-Sep-09 23:26 
GeneralRe: Tracking Referral URL Pin
Aman Bhullar3-Sep-09 5:26
Aman Bhullar3-Sep-09 5:26 
AnswerRe: Tracking Referral URL Pin
Abbas_here4-Sep-09 3:12
Abbas_here4-Sep-09 3:12 
Questiontimer event affevting all other controls Pin
Member 38798812-Sep-09 19:39
Member 38798812-Sep-09 19:39 
AnswerRe: timer event affevting all other controls Pin
Muhammad Mazhar2-Sep-09 19:50
Muhammad Mazhar2-Sep-09 19:50 
Questionscrolling gridview using update panel Pin
haleemasher2-Sep-09 19:35
haleemasher2-Sep-09 19:35 
AnswerRe: scrolling gridview using update panel Pin
Arun Jacob2-Sep-09 19:41
Arun Jacob2-Sep-09 19:41 
AnswerRe: scrolling gridview using update panel Pin
sashidhar2-Sep-09 19:50
sashidhar2-Sep-09 19:50 
GeneralRe: scrolling gridview using update panel Pin
haleemasher2-Sep-09 20:55
haleemasher2-Sep-09 20:55 
AnswerRe: scrolling gridview using update panel Pin
Abhijit Jana2-Sep-09 19:52
professionalAbhijit Jana2-Sep-09 19:52 
AnswerRe: scrolling gridview using update panel Pin
Muhammad Mazhar2-Sep-09 19:55
Muhammad Mazhar2-Sep-09 19:55 
QuestionAlert Message Before Response.Redirect Pin
Johndas2-Sep-09 19:27
Johndas2-Sep-09 19:27 
AnswerRe: Alert Message Before Response.Redirect Pin
mr_muskurahat2-Sep-09 19:36
mr_muskurahat2-Sep-09 19:36 
AnswerRe: Alert Message Before Response.Redirect Pin
Muhammad Mazhar2-Sep-09 20:08
Muhammad Mazhar2-Sep-09 20:08 
QuestionPlease confirm Passport Based Authentication! Pin
mr_muskurahat2-Sep-09 18:52
mr_muskurahat2-Sep-09 18:52 
AnswerRe: Please confirm Passport Based Authentication! Pin
Abhijit Jana2-Sep-09 19:00
professionalAbhijit Jana2-Sep-09 19:00 
GeneralRe: Please confirm Passport Based Authentication! Pin
mr_muskurahat2-Sep-09 19:17
mr_muskurahat2-Sep-09 19:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.