Thursday, March 22, 2012

Modal dialog question/how-to

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"Brian Simmons" <centraso@.newsgroup.nospam> wrote in message
news:uza5Bu0gHHA.3960@.TK2MSFTNGP02.phx.gbl...

> Does anyone have a sample of this or can point me in the right direction?
JavaScript has a window.showModalDialog method - arguments can be passed
when it is opened, and it can return a variant (i.e. can be an array of
values) to the opening method when it closes.
http://www.google.co.uk/search?sour...showModalDialog
However, this isn't cross-browser compliant...
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.
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"Mark Rae" <mark@.markNOSPAMrae.net> wrote in message
news:ObWIN30gHHA.4704@.TK2MSFTNGP06.phx.gbl...
> "Brian Simmons" <centraso@.newsgroup.nospam> wrote in message
> news:uza5Bu0gHHA.3960@.TK2MSFTNGP02.phx.gbl...
>
> JavaScript has a window.showModalDialog method - arguments can be passed
> when it is opened, and it can return a variant (i.e. can be an array of
> values) to the opening method when it closes.
> http://www.google.co.uk/search?sour...showModalDialog
> However, this isn't cross-browser compliant...
>
"David" <david.colliver.NEWS@.revilloc.REMOVETHIS.com> wrote in message
news:uWN24B1gHHA.4520@.TK2MSFTNGP02.phx.gbl...

> 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/aspne...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 (wawang@.online.microsoft.com, remove 'online.')
Microsoft Online Community Support
========================================
==========
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscript...ault.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/subscript...t/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/Mod...ModalPopup.aspx
Regards,
Walter Wang (wawang@.online.microsoft.com, 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.

0 comments:

Post a Comment