473,325 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Aspx page opened as a modal dialog

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
1 4662
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nonoy of Philippines | last post by:
Hello, guys... I'm just starting to develop web applications and I have this problem regarding Session objects At some parts of my application, I open modal dialog window which also opens...
0
by: Nonoy of Philippines | last post by:
I'm not sure if my 1st posting was actually posted. So, sorry if I duplicated it. For some reason, when there are previously opened IE windows before I opened the IE window that displays our...
3
by: Stevie_mac | last post by:
It might be me but... I dont seem to get a Page_Load event when a opening an ASPX in an iFrame. I do geta Page_Load event when an item on the ASPX (inside the iFrame) is clicked but then...
3
by: DavidS | last post by:
Have parent.aspx from which I open Driver.aspx form via button on parent.aspx. When I first open the modal dialog, the driver.aspx Page_Load function is called. After I close the dialog, then...
2
by: A Traveler | last post by:
Hello all, Here is my situation... i have a page which has a dropdown of companies. Next to it i have a "New" button for creating a new company. What i would like to do is to show a modal dialog...
2
by: Jawahar | last post by:
All, I have an application in asp.net the application opens a lot of Modal diaglog pages. When modal dialogs are close the parent aspx page is often un-responsive. I mean I can click the buttons...
0
by: Guadala Harry | last post by:
I have an aspx page that opens as a modal dialog. The aspx contains two IFrames (ID = thumbFrame and mainFrame). From the code-behind of the page that loads in mainFrame I want to cause the page...
2
by: Demetri | last post by:
Hi, Does anyone have a clue how to create a page during runtime? I am developing a web control library. The control I am developing within it presently will need to present the user with a...
0
by: adam | last post by:
I'm writing an Intranet application that uses Modal Dialog boxes and have embedded a page within an iframe on another page that is opened modally, so that the postbacks work as normal. When...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.