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

client side button inside server side code

Status
Not open for further replies.

frogggg

Programmer
Jan 17, 2002
182
US
What am I doing wrong here? I'm getting the error:
Type mismatch: '[string: &quot;<input type=button v&quot;]'

Am I missing a set of quotes? How do I do this?

Thanks for any help.

Here's my code:
do while not rsEmpPosts.EOF
dim referenceNum
referenceNum = rsEmpPosts.fields.getValue(&quot;ReferenceNum&quot;)
Response.Write &quot;Post Number: &quot; & referenceNum & &quot;<br>&quot;
Response.Write &quot;Job Title: &quot; & rsEmpPosts.fields.getValue(&quot;JobTitle&quot;) & &quot;<br>&quot;
Response.Write &quot;<input type=button value='Update or Delete' onClick=window.location='updatePost.asp?ReferenceNum=&quot; + referenceNum + &quot;'>&quot;
Response.Write &quot;<br><hr>&quot;
rsEmpPosts.moveNext
loop
 
Try using the ampersand instead of the +:

Response.Write &quot;<input type=button value='Update or Delete' onClick=window.location='updatePost.asp?ReferenceNum=&quot; & referenceNum & &quot;'>&quot;
 
Thanks - that was it exactly! Dumb mistake!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top