How would it look if you hard-coded the HTML?
<a href="/newpage.asp?newval=yourValue">Click me</a>
So, what's the part that is coming from the database? yourValue, right?
Try this, OUTSIDE of ASP blocks (<% %>)
<%
''not here
%>
<a href="newpage.asp?newval=<%=rs.Fields.Item("name").Value%>">Click me</a>
Ray at home
-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Ehtisham
How to pass a value into a variable and that variable will be use in another
page. Using HREF in response.write method.
I mean some thing like that:
response.write("<a
href="http://localhost/newpage.asp/newval=rs("name")"
</a>)
I want to move the resulset value into newval and than pass it to page
newpage.asp
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12hekf2lr/M=362131.6882499.7825260.1510227/D=groups/S=1705115381:TM/Y=YAHOO/EXP=1124156543/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~->
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [email protected]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/active-server-pages/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/