Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing the text from a link to the next page?

Status
Not open for further replies.
Feb 8, 2002
43
US
Is this possible? I am using ASP.NET and I am required at this point to use an HTML link to open another page. My question is: If my link is in the form of a word (e.g. <A Href = &quot;sompepage.aspx&quot;>VALUE</A>) is there some way to pass the text of the link to the next page so that I can populate it into a variable (Note: I'm doing this in order to build a dynamic query for drill down purposes).
 
off the top of my head... i think that if instead of using a standard anchor, you use the hyperlink class, you can use the .text attribute to get text (.navigateurl to set the url).

just what comes to mind...
 
I would prefer not to use web controls here. It's quicker and easier to use just the response.write. Thanks though. I just need to pass the text of a hyperlink to the next page. How would I do this?
 
i don't know if you can that way, without using hidden form fields or something like that. I don't know off hand if javascript has anything for that... might be worth a look.

sorry...
 
If you are still having this problem, maybe you could try the '?' parameter indicator.

<A Href = &quot;sompepage.aspx?paramname=value&quot;>VALUE</A>

I'm new to asp.net too but this is how it's done in other tools.

JC

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top