M
mianiro
Hi everyone
I need a little bit of help ... I need to call a javascript function
inside of a .net sub procedure. Here is my code:
ClientScript.RegisterClientScriptBlock(Me.GetType(), "", "<script
language='JavaScript'> function OpenChild() " & _
"{" & _
"var ParmA = retvalA.value;" & _
"var ParmB = retvalB.value;" & _
"var ParmC = retvalC.value;" & _
"var MyArgs = new Array(ParmA, ParmB, ParmC);" & _
"var WinSettings =
""center:yes;resizable:no;dialogHeight:300px""" & _
"var MyArgs = window.showModalDialog(" & _
"""CompanyInfo.aspx"", MyArgs, WinSettings);" & _
"if (MyArgs == null)" & _
"{" & _
"}" & _
"else" & _
"{" & _
"retvalA.value=MyArgs[0].toString();" & _
"retvalB.value=MyArgs[1].toString();" & _
"}" & _
"} </script>")
Am I going about this the right way? Nothing seems to happen when I hit
this code in the debugger. Is there another way to call javascript from
a sub procedure?
I need a little bit of help ... I need to call a javascript function
inside of a .net sub procedure. Here is my code:
ClientScript.RegisterClientScriptBlock(Me.GetType(), "", "<script
language='JavaScript'> function OpenChild() " & _
"{" & _
"var ParmA = retvalA.value;" & _
"var ParmB = retvalB.value;" & _
"var ParmC = retvalC.value;" & _
"var MyArgs = new Array(ParmA, ParmB, ParmC);" & _
"var WinSettings =
""center:yes;resizable:no;dialogHeight:300px""" & _
"var MyArgs = window.showModalDialog(" & _
"""CompanyInfo.aspx"", MyArgs, WinSettings);" & _
"if (MyArgs == null)" & _
"{" & _
"}" & _
"else" & _
"{" & _
"retvalA.value=MyArgs[0].toString();" & _
"retvalB.value=MyArgs[1].toString();" & _
"}" & _
"} </script>")
Am I going about this the right way? Nothing seems to happen when I hit
this code in the debugger. Is there another way to call javascript from
a sub procedure?