Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2004
    Posts
    7

    Exclamation Unanswered: Wht's wrong with this string!!

    Hi experts,

    See This one line code in my Aspx Page.

    Response.Write("<script>window.close();</script>")

    What's wrong in it??
    When I open the page I get the error message:

    ************************************************** *************
    Compiler Error Message: BC30648: String constants must end with a double quote.

    Source Error:

    Line 42:
    Line 43: Sub Button2_Click(sender As Object, e As EventArgs)
    Line 44: Response.Write("<script>window.close();</script>")
    Line 45: End Sub
    Line 46:

    ************************************************** *************
    Error is shown In Line No: 44: The string is within 2 double quotes .. Still What's wrong with me.. Please help.

    Any Idea ??

    Kalanad

  2. #2
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    I would hazzard a guess and say it is because you are using special characters in your string without escaping them.... I could be wrong though...

  3. #3
    Join Date
    Oct 2004
    Posts
    7
    Which is the special character in that line you guess I use....

  4. #4
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    are you using vb.net or c#.... I would take a guess and say it is "/"

Posting Permissions

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