Modal dialog question/how-to

B

Brian Simmons

Hi All,

I would think this would be a fairly common thing, but I'm having a bit of
trouble finding what I want on google/etc...

In an ASP.NET 2.0, C# webform, I would like to have a textbox and button.

In the textbox, you would type a couple of characters (i.e. "Amer"), then
click the button (labeled "Browse...").
It would open a modal browser dialog, show a radio-buttoned list of
companies which begin with "Amer".
The user would radio-button select the company they're interested in, and
click OK to the dialog.
The dialog would close and the textbox would be filled with the user's
choice ("American Steel" for example).

Does anyone have a sample of this or can point me in the right direction?

Thanks,
Brian
 
M

Mark Rae

As it is not cross browser, then you could do a pseudo modal dialog by
using a DIV, positioned and looking like a modal dialog.

Yes indeed, as no doubt Thomas Hansen will tell us sooner or later...
 
W

Walter Wang [MSFT]

Hi Brian,

Please see following FAQ document:

#ASP .NET FAQ - How to select a value from a child form and send it to
parent form?
http://www.syncfusion.com/FAQ/aspnet/WEB_c11c.aspx#q282q


window.open will open a non-modal dialog, but it works on most browsers;
window.showModalDialog
(http://msdn2.microsoft.com/en-us/library/ms536759.aspx) is a IE only
solution. In either case, the opener property from child window could be
used to reference the parent page.

Please feel free to let me know if there's anything unclear. Thanks.

Sincerely,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

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

Walter Wang [MSFT]

Hi Brian,

If you're using ASP.NET AJAX, you may also try following component from
ASP.NET AJAX Control Toolkit:

#ModalPopup Sample
http://ajax.asp.net/ajaxtoolkit/ModalPopup/ModalPopup.aspx


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

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

Similar Threads


Members online

Forum statistics

Threads
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top