473,320 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

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
Nov 15 '05 #1
2 1402

"amil [c#newbie]" <am****@hotmail.com> сообщил/сообщила в новостях
следующее: news:#F**************@TK2MSFTNGP09.phx.gbl...
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?
Nov 15 '05 #2
Right on the mark! Thanks for the reply.

"B. Voronkov" <vo******@tochka.ru> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

"amil [c#newbie]" <am****@hotmail.com> сообщил/сообщила в новостях
следующее: news:#F**************@TK2MSFTNGP09.phx.gbl...
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?

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Martin Dew | last post by:
Having some problems getting a hyperlink object to work in my repeater control, It displays the text I have asked it to for the hyperlink, but it does not act as a link. My repeater code is below...
4
by: Mark Rae | last post by:
Hi, I have an <asp:PlaceHolder control on a page in an ASP.NET 1.1 app, as follows: <td nowrap><asp:PlaceHolder ID="phClientWebsite" Runat=server>&nbsp;</asp:PlaceHolder></td> Server-side,...
4
by: Lan H. Nguyen | last post by:
I have this line of code in my .aspx page <asp:HyperLink ID="hrefView" CssClass="main" ForeColor="blue" Runat="server" NavigateUrl='<%# "View.aspx?id=" + ID.ToString()%>'>View...
19
by: Joe | last post by:
I have an aspx page (referred to here as page_1) with a datagrid whose first column contains hyperlinks. When a user clicks one of these hyperlinks, he will navigate to another aspx page (referred...
2
by: Andy | last post by:
Hi, This is one of those things I thought should e easy... I'm programatically trying to set the navigateURL property in a hyperlink in the headertemplate of a repeater, but always get the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: ShФllНpТpО 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.