Link to home
Start Free TrialLog in
Avatar of rkulp
rkulpFlag for United States of America

asked on

window.open or AJAX Toolkit PopupControl Extender -- Which is best for this?

I am getting confused as to the best way to proceed on this problem -- not a new event for me but still frustrating. I have a building reservation situation where I store building use information in a SQLServer Express database and display it on a calendar. What I want to be able to do is click on the day and have a popup form appear with a detail view of the building use data for that day. The user should be able to edit the data and save it to the database.

In searching for information on the PopupControlExtender I came across the window.open method of displaying another window. Here are my questions:
1. What is the best way to do what I want to do? An entirely different approach may be best. I don't know.
2. What options do I have if the user has disabled Java or disabled popups?

I am a true novice when it comes to web development. Examples and links to beginner level tutorials would be greatly appreciated.
ASKER CERTIFIED SOLUTION
Avatar of Gewgala
Gewgala
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rkulp

ASKER

Gewgala,

Thanks for your quick response. The situatuion is not quite what you have stated but theoretically equivalent. The user clicks on a date in the calendar and that date is what is needed for the query to show the details about the building. However, that difference leads to one more problem. How do I fire the PopupControlExtender from the Calendar.selectionChanged event rather than a button onClick event? That is, how do I execute showDetails from the calendar code behind? The only example I can find uses <asp:ModalPopupExtender> which I cannot find anywhere, either in VS2005 or VS2010. That control had a show method but the PopupControlExtender does not.
Avatar of rkulp

ASKER

Gewgala,

I found the <ajax:ModalPopupExtender> and can show the popup from the calendar's selectionchanged event. However, it is an empty panel except for a "close" button. It seems I have considerable work to do. I'll get back in a day or so to give you and update and, hopefully, close the question. Thanks for your help.
Avatar of rkulp

ASKER

Thanks for your excellent response. It was very clear, even to a novice.
Glad I could help.