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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP and HTML tags

Status
Not open for further replies.

breeb

Programmer
Jul 8, 2003
25
ZA

I am writing a search page that shows n results at a time and am having problems with sending variables to a HTML tag inside a 'Response.write'. Any ideas on the syntax?

This is what I have so far:
Response.Write(&quot;<INPUT TYPE=BUTTON VALUE=NEXT ONCLICK=&quot;&quot;document.location.href='search.asp?curpage=&quot; & curpage + 1 & &quot;';&quot;&quot;>&quot;)%>

This works, but I need to send more variables through like the value of drop down boxes and a text box.

Any help would be appreciated!
 
This way should be more easy.
Combining HTML tags with ASP

<INPUT TYPE=BUTTON VALUE=NEXT ONCLICK= &quot;document.location.href='search.asp?curpage=<%=curpage + 1%>'&quot;>

________
George, M
 
Forgot to mention that
&quot;<%=&quot; acts like a Response.Write

and if you want to send more values with the link you can separate them using &quot;&&quot;

document.location.href='search.asp?curpage=<%=curpage + 1%>&var1=<%=var1%>&var2=<%=var2%>'

________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top