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

question of Tidbit post from Vganeshbabu

Status
Not open for further replies.

sthmpsn1

MIS
Sep 26, 2001
456
US
In your post you give the following example

Protected WithEvents DivScript as System.Web.UI.HtmlControls.HtmlGenericControl

Private Sub AddRecord()
'Write Code to Add to the Database
DivScript.InnerHTML = &quot;<Script language='javascript'> alert('record was successfully entered into an SQL database') </Script> &quot;

End Sub

when I try to use this code I get an error &quot;String constants must end with a double quote&quot;??
 
Hi,
It works for me.. I think u might have assigned the string to InnerText or Text property..

anyway try with the following string and try

&quot;<Script language=&quot;&quot;javascript&quot;&quot;>alert(&quot;&quot;record was successfully entered into an SQL database&quot;&quot;)<&quot; & &quot;/Script>&quot;

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top