By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,116 Members | 1,509 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,116 IT Pros & Developers. It's quick & easy.

Aspx page opened as a modal dialog

P: n/a
I have an aspx page that has a checkboxlist control on it. There is
code in the selection changed event so that when you check the first
checkbox (Select All) it checks the reset of the checkboxes on the
page.

This page is opened by clicking on a link within a datagrid as a modal
dialog using the following code :

strScript = "window.showModalDialog('Dialog.aspx?Var1=" + strVar1+
"&Var2=" + strVar2 + "&var3=" + strvar3 + "&var4=" + strvar4 +
"&date=" + strDate + "&var5=r" + "&var6e=6', null,
'center:yes;resizable:no;dialogHeight:250px')"

dgDiagBooklets.Items(intCounter).Cells(11).Attribu tes.Add("onclick",
strScript)

This code will work when compiled and ran on my local pc, but it will
not work when I copy to our server.

Any suggestions as to why, or how I could do this differently?
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hello Lisa,

Try putting <base target="_self"/> in the .aspx for your dialog.

--
Matt Berther
http://www.mattberther.com
I have an aspx page that has a checkboxlist control on it. There is
code in the selection changed event so that when you check the first
checkbox (Select All) it checks the reset of the checkboxes on the
page.

This page is opened by clicking on a link within a datagrid as a modal
dialog using the following code :

strScript = "window.showModalDialog('Dialog.aspx?Var1=" + strVar1+
"&Var2=" + strVar2 + "&var3=" + strvar3 + "&var4=" + strvar4 +
"&date=" + strDate + "&var5=r" + "&var6e=6', null,
'center:yes;resizable:no;dialogHeight:250px')"

dgDiagBooklets.Items(intCounter).Cells(11).Attribu tes.Add("onclick",
strScript)

This code will work when compiled and ran on my local pc, but it will
not work when I copy to our server.

Any suggestions as to why, or how I could do this differently?

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.