TheWizardofInt Posted March 17, 2003 Posted March 17, 2003 This code works in my main.aspx: Public Sub ShowPend(ByVal sender As System.Object, ByVal e As System.EventArgs) Dim sWindow As String = "mywindow" Dim jscript As String = "<script language='JavaScript'>mywindow = window.open('/gmconnect/schedule.aspx','" + sWindow + "','height=350,width=532,toolbars=no,resizable=no')</script>" Session("CalContact") = txtContact.Text Session("OnDate") = DateString Session("CompStat") = Session("sPassRec") RegisterClientScriptBlock("mywindow", jscript) End Sub But not from any other page. Anything that I might have as a criteria on my main page that I might need to set for the other pages and didn't? Thanks Quote Read the Fovean Chronicles Because you just can't spend your whole day programming!
TheWizardofInt Posted March 18, 2003 Author Posted March 18, 2003 That didn't work either. I do send this window from another window, which is opened with the same method, and I do have to close this second window Any other ideas Quote Read the Fovean Chronicles Because you just can't spend your whole day programming!
Commodus2 Posted March 25, 2003 Posted March 25, 2003 So you say your function is in another aspx file than your aspx that needs the script? if you Register a script in 1 window to be activated in another, you'll run into trouble. It cannot be done. RegisterScript is happening at runtime, so it must be in the page that needs it clientside. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.