Question about user webcontrol and popup

V

Victor

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
 
M

Masudur

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
 
S

Steven Cheng[MSFT]

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/JavaScript and DHTML/0596004672_jvdhtmlckbk-c
hp-6-sect-10.html

http://www.webdeveloper.com/forum/archive/index.php/t-25204.html

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

Steven Cheng[MSFT]

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.
 

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

Staff online

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top