How to concatenate a variable
I want to concatenate a variable to a string in an alert statement:
Dim ID As String = Request.Form("ID")
scriptString += "var jsID ='" & ID & "';"
scriptString += "alert('OK' + ID);"
scriptString += "}</"
scriptString += "script>"
I donot know how to write the variable ID in this statement, because I have troubles with the single and double quotes in it.
Help is appreciated, Ger.
By Thomas Eyde in forum .NET
Last Post: 06-18-2002, 11:41 AM
By Lymarie in forum Database
Last Post: 04-02-2001, 11:16 AM
By Larry Hunter in forum Database
Last Post: 03-18-2001, 11:31 PM
Last Post: 06-07-2000, 05:11 PM
By mrfelis in forum VB Classic
Last Post: 04-25-2000, 11:08 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL