Calendar Web Control in modal dialog page

A

arturo_f

I am trying to use Calendar Web Control on a page which is opened as modal
dialog box. After trying to change the selected date the error is generated.

In order to reproduce this do the following:
* Create first page (First.aspx)
* Place a button (btnShow) on the First.aspx page with the following client
script attached to the onclick event:
btnShow_onclick() {
showModalDialog('Second.aspx');
}
* Create second page (Second.aspx)
* Place calendar control on the Second.aspx page
* Start the application and navigate to the First.aspx page
* Click on btnShow button which causes Second.aspx page appear as modal
dialog box
* Try to change selected date on the calendar control
* It should cause the page error appear
 
T

Teemu Keiski

Hi,

in the second.aspx (the one that comes to the modal window), put this to the
head (between <head></head> tags):

<base target="_self" />
 
A

arturo_f

Small, nice and very usefull tag.
You saved a lot of my development time.
Many, many thanks and best wishes from POLAND.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top