Modal dialog question/how-to

  • Thread starter Thread starter Brian Simmons
  • Start date Start date
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
 
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...
 
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.
 
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.
 
Back
Top