|
-
November 19th, 2011, 06:37 PM
#1
A syntax issue...
Hello. I am coding a simple project in VS 2010 (vb.net) that spits out formatted code strings for another program. In order for it to spit out the proper format it needs to be formatted properly in VS. I have one string formatted correctly in VS, and it looks like this:
TextBox2.Text = "run javascript(""document.getElementById(\""" & elid & "\"").selectedIndex =\""" & ddindex & "\"";"")"
where elid and ddindex are the variables. I have a second string that I just can't get formatted right in VS (elid, lowrange and highrange are the variables and everything in the following string needs to be written to the textbox including quotes, spaces, etc):
run javascript("document.getElementById(\"elid\").selectedIndex = {$rand("lowrange", "highrange")};//dropddown\")")
(that's the code I need spit out (of course replacing the variable names with the values)
I have been trying different variations for a week now and just can't come up with the correct string. Any help would be greatly appreciated! Thank you.
John
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|