PDA

View Full Version : Response.Write


JoeP
10-02-2002, 12:40 AM
Could someone one show me the correct syntax to write a "Button" on the fly with an apostrophe in the value. i.e.=


Response.write("&nbsp;<input type='Submit' value='Today's News' name='B2' style='cursor: hand; font-size='1'>")


This is only giving me Today in the Button.


Thank you for any suggestions or answers!

whammy
10-02-2002, 01:06 AM
<%
Response.Write("<input type=""Submit"" value=""Today's News"" name=""B2"" style=""cursor: hand; font-size: 12pt"">")
%>


P.S. No need to use single quotes when you can escape a double quote in ASP/VBScript by using another one! :D

JoeP
10-02-2002, 01:18 AM
Much obliged! Thank you!

whammy
10-03-2002, 01:15 AM
:cool: