How to get the hyperlink source (ASP.Net C#)

  • Thread starter Thread starter amil [c#newbie]
  • Start date Start date
A

amil [c#newbie]

Hi all,

Given that I have two hyperlinks that points to the same page. Is it
possible to know which was hyperlink was clicked from the target page's
point of view?

TIA
 
amil said:
Hi all,

Given that I have two hyperlinks that points to the same page. Is it
possible to know which was hyperlink was clicked from the target page's
point of view?

TIA

The simpliest way is to make smth like this: the fisrt link is
"mypage.aspx?source=first", the second is "mypage.aspx?source=second". And
the check it with Request.QueryString. Or U need something else?
 
Right on the mark! Thanks for the reply.

B. Voronkov said:
The simpliest way is to make smth like this: the fisrt link is
"mypage.aspx?source=first", the second is "mypage.aspx?source=second". And
the check it with Request.QueryString. Or U need something else?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top