If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Wht's wrong with this string!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-20-04, 10:08
kalanad kalanad is offline
Registered User
 
Join Date: Oct 2004
Posts: 7
Exclamation 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
Reply With Quote
  #2 (permalink)  
Old 10-20-04, 18:53
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
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...
Reply With Quote
  #3 (permalink)  
Old 10-23-04, 12:41
kalanad kalanad is offline
Registered User
 
Join Date: Oct 2004
Posts: 7
Which is the special character in that line you guess I use....
Reply With Quote
  #4 (permalink)  
Old 10-24-04, 19:29
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
are you using vb.net or c#.... I would take a guess and say it is "/"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On