I think this will be a silly easy question.
I have an ASP.NET page with VB.NET code behind. I am using Attributes.Add to put some javascript in the onchange event of a drop down list. I am having trouble sending a double quote. In the view source, it always shows up as ".
vb Code:
strJavascript = "getStyleClass('ExampleContent').style.backgroundImage = ""url('" & Utilities.GetAppPath & "Images\Backgrounds\Holly.jpg')"";" ddlExistingWallpaper.Attributes.Add("onchange", strJavascript)
The code behind looks like:
How can I send a double quote as a double quote? I have also tried replacing the "" with CHR(34), but have the same results.Code:onchange="getStyleClass('ExampleContent').style.backgroundImage = "url('<RootPath>\Images\Backgrounds\Holly.jpg')";"




Reply With Quote