|
-
Sep 11th, 2005, 03:21 AM
#1
Thread Starter
Hyperactive Member
-
Sep 11th, 2005, 03:33 AM
#2
Re: Passing the name of the hyperlink or something???
I think there are 3 ways to pass info. Check out the excellent tutorial on ASP from here:
http://www.w3schools.com/default.asp
-
Sep 11th, 2005, 05:05 AM
#3
Thread Starter
Hyperactive Member
Re: Passing the name of the hyperlink or something???
 Originally Posted by dglienna
Hey thanks for the link. It helped a little.
But I still have one more question.
Is it possible pass the name of the HTML hyperlink to the querystring? If yes
then how?
-
Sep 11th, 2005, 10:00 PM
#4
Thread Starter
Hyperactive Member
Re: Passing the name of the hyperlink or something???
-
Sep 11th, 2005, 10:18 PM
#5
Frenzied Member
Re: Passing the name of the hyperlink or something???
well, isn't this possible?
href="WebForm2.aspx?name=Ian"
?
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Sep 11th, 2005, 10:27 PM
#6
Thread Starter
Hyperactive Member
Re: Passing the name of the hyperlink or something???
 Originally Posted by wengang
well, isn't this possible?
href="WebForm2.aspx?name=Ian"
?
Well it did pass the string "Ian" but not the Hello World which is the intended
value.
-
Sep 12th, 2005, 12:54 AM
#7
Frenzied Member
Re: Passing the name of the hyperlink or something???
OK.
so use the innerText property of the A Tag:
<a href="#" onClick="location.href='WebForm2.aspx?textvalue='+ this.innerText;">Hello World</a>
and on your target page, you can request("textvalue")
I'm not sure, but you may have to replace ("%20", " " ) to get your spaces back, maybe not.
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Sep 12th, 2005, 06:14 AM
#8
Fanatic Member
Re: Passing the name of the hyperlink or something???
Hi,
To make things easy, why dont you just use the server variable
request.Servervariables("HTTP_REFERRER")
thisll pass the page name to to wherever you want it..
ta
kai
As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..
A few things that make a good Developer a Great One.
Methodical and a thorough approach to research and design inevitably leads to success.
Forward thinking is the key to Flow of control.
Never test in the design environment, always test in real time, you get the REAL results.
CBSE & OOSE are the same animal, they just require different techniques, and thinking.
SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
The key to good design is explicit attention to both detail and response.
Think Freely out of the "Box" you're in..... You will soar to better heights.
Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT
-
Sep 12th, 2005, 07:21 AM
#9
Frenzied Member
Re: Passing the name of the hyperlink or something???
Hey Kaihirst. Did you post this on the wrong thread? The one about the URL as parameter would be more suitable.
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Sep 12th, 2005, 08:34 AM
#10
Fanatic Member
Re: Passing the name of the hyperlink or something???
Hi,
yeah wrong thread!!!
ta
Kai
As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..
A few things that make a good Developer a Great One.
Methodical and a thorough approach to research and design inevitably leads to success.
Forward thinking is the key to Flow of control.
Never test in the design environment, always test in real time, you get the REAL results.
CBSE & OOSE are the same animal, they just require different techniques, and thinking.
SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
The key to good design is explicit attention to both detail and response.
Think Freely out of the "Box" you're in..... You will soar to better heights.
Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|