String containing double quotes troubling a lot??????

Results 1 to 3 of 3

Thread: String containing double quotes troubling a lot??????

  1. #1
    S.S. Gautam Guest

    Default String containing double quotes troubling a lot??????

    I want to write a statement in which I am giving a link to an ASP application and I am also passing a value with that link call. <BR>I am using the following statement but it is displaying the error "Unterminated String".<BR><BR><BR>&#060;%<BR>response.write "&#060;A HREF=""test.asp?returndate=&#060;%=request.form("" txtdate"")&#037;&#062;"">&#060;PRE>&#060;H3>Input Again&#060;/H3>&#060;PRE>&#060;/A>"<BR><BR>&#037;&#062;<BR><BR><BR>Help ASAP.<BR>

  2. #2
    Join Date
    Dec 1969
    Posts
    168

    Default RE: String containing double quotes troubling a lot??????

    Try:<BR>&#060;%<BR>response.write("&#060;A HREF=""test.asp?returndate=" & request.form("txtdate") & """>&#060;PRE>&#060;H3>Input Again&#060;/H3>&#060;PRE>&#060;/A>")<BR>&#037;&#062;<BR>or<BR>&#060;a href="test.asp?returndate=&#060;%=request.form("tx tdate")&#037;&#062;"> &#060;h3>Inputagain&#060;/h3>&#060;/a><BR><BR>Hope this helps... Cheers!

  3. #3
    Join Date
    Dec 1969
    Posts
    23

    Default RE: String containing double quotes troubling a lot??????

    Try this!<BR><BR>&#060;%<BR>response.write "&#060;A HREF=" & chr(34) & "test.asp?returndate=" & request.form("txtdate") & chr(34) & ">&#060;PRE>&#060;H3>Input Again&#060;/H3>&#060;PRE>&#060;/A>"<BR><BR>&#037;&#062;<BR><BR>Good Luck!<BR><BR>Tester

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •