Hi
How does one pass a variable-value (UID beneath) into a script from server side code
I get "error UID is undefined."
Too few / too many dbl Quotes ??
eg
Dim Uid As String = sDay & iPeriod & iItemNum & "_click"
strClientScript = "<script language=""javascript"">" & vbCrLf & "function " & Uid & "() {" & vbCrLf & _
var x = window.showModalDialog(""dcontent2.htm""," & Uid & ...etc
it's for a generic / create-multi jscripts DatGrid application..
(trying to create scripts for each new ListItem added to a listbox in a dgrids columns);;;
This , provided i treat uid as a value in the script more quotes around it, ..works for a once off
TIQA
NEal
code beneath...
strClientScript = "<script language=""javascript"">" & vbCrLf & _
"function " & Uid & "() {" & vbCrLf & _
"var x = window.showModalDialog(""dcontent2.htm""," & Uid & ",""dialogHeight: 150px; dialogWidth: 300px; dialogTop: 300px; dialogLeft: 400px; edge: Raised; center: Yes; resizable: No; help: No; status: No;"");" & vbCrLf & _
"}" & vbCrLf & _
"</script>"
--------------------------------
From: Neal Rogers
-----------------------
Posted by a user from .NET 247 (
http://www.dotnet247.com/)
<Id>i7+0z60w90ybEZvUIdJcpg==</Id>