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

Question about user webcontrol and popup

P: n/a
Hi guys.
I want to implement a customized user webcontrol (.ascx). Inside this
control I have a dropdownlist and a button. when user click the button, it
will open a pop up window(not Ajax popup window). The popup window will
display a datagrid. The user can select one or more items from the datagrid.
Then when they close the pop-up window, the system will add user's selection
into the dropdownlist inside the parent page.

How can I achieve this effectively? Is there any example about this?
Thanks a lot

Cheers
Victor
Jul 11 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Jul 11, 11:26 am, "Victor" <vic...@noemail.noemailwrote:
Hi guys.
I want to implement a customized user webcontrol (.ascx). Inside this
control I have a dropdownlist and a button. when user click the button, it
will open a pop up window(not Ajax popup window). The popup window will
display a datagrid. The user can select one or more items from the datagrid.
Then when they close the pop-up window, the system will add user's selection
into the dropdownlist inside the parent page.

How can I achieve this effectively? Is there any example about this?
Thanks a lot

Cheers
Victor
Hi....

If i am not wrong you want a simple LOV (list of value) selection
mechanism just like oracle developer ...
well you can display a modal dialog using
window.showmodaldialog()......... and refer a aspx page... in the
modaldialog parameter.... and when the user select any item... keep
that item in session and when the user close the popup.. submit the
parent page and then grap the value from session and add it to your
dropdown list..

"But Note" showmodaldialog is not all browser supported...

In that case you can use jquery type javascript framework to show your
modal dialog.....

Thanks
Md. Masudur Rahman (Munna)
kaz Software Ltd.
www.kaz.com.bd
http://munnacs.110mb.com
Jul 11 '07 #2

P: n/a
Hi Victor,

From your description, what you want to do is let two ASP.NET web page
communicate with each other through dialog window(as opener, child
relationship) correct?

I think you can implement the child page be opened as a modal dialog so as
to force the user choose an operation(save or cancel) to return to parent
page(opener page). Here are some web resource about use modal dialog and
pass values between opener page and dialog page:

#Modal and Modeless Dialog Boxes
http://www.webreference.com/js/column90/

#Simulating a Cross-Browser Modal Dialog Window
http://book.chinaz.com/JSP/JavaScrip..._jvdhtmlckbk-c
hp-6-sect-10.html

http://www.webdeveloper.com/forum/ar...p/t-25204.html

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Jul 11 '07 #3

P: n/a
Hi Victor,

Have you got any progress on this issue or does the information in previous
messages help you some? If there is any further question on this, please
feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 16 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.