473,385 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
Apr 20 '07 #1
5 1314
"Brian Simmons" <ce******@newsgroup.nospamwrote in message
news:uz**************@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?sourc...howModalDialog

However, this isn't cross-browser compliant...
Apr 20 '07 #2
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" <ma**@markNOSPAMrae.netwrote in message
news:Ob**************@TK2MSFTNGP06.phx.gbl...
"Brian Simmons" <ce******@newsgroup.nospamwrote in message
news:uz**************@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?sourc...howModalDialog

However, this isn't cross-browser compliant...

Apr 20 '07 #3
"David" <da*****************@revilloc.REMOVETHIS.comwrot e in message
news:uW**************@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...
Apr 20 '07 #4
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...11c.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 (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Apr 23 '07 #5
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/Moda...odalPopup.aspx
Regards,
Walter Wang (wa****@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.

Apr 23 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: tungchau81 | last post by:
Hi, A Modal Dialog does not allow us to highlight the text content inside <DIV> tag unless I use a <textarea> tag to display that text content. However, the situation of my software makes it...
3
by: Rod | last post by:
I have an asp.net application where some of the interaction with the user is through modal dialog windows. This works very well except for the annoying fact that the dialog window always returns...
5
by: Jeremy | last post by:
How can I view the HTML source of a page that has been opened as a modal dialog box (in IE6)? Thanks
2
by: Jawahar | last post by:
All, I have an application in asp.net the application opens a lot of Modal diaglog pages. When modal dialogs are close the parent aspx page is often un-responsive. I mean I can click the buttons...
2
by: barney | last post by:
Hi Folks, One of the users running our web application is reporting that in modal dialog boxes, they can only see half the content. It seems that even though I have explicitly set font sizes...
3
by: hagarwal | last post by:
Hello Can a modeless form be used as the "owner" of a modal form? Here's the situation, from my MainForm, I have created a modeless form using "Show" - and showed a modal form using...
1
by: dan.c.roth | last post by:
oForm.Close() vs this.Close() in a modal dialog. oFrom.Close() calls Form.Dispose() but this.Close() ,say in the click event of the Form, does not. I can think of the reason for this but is...
1
by: baje | last post by:
how do create modal dialog box?
7
by: tranesy | last post by:
how can I create dialog box as openfiledialog or as other ready dialog box in window but from my design please help me
11
by: VK | last post by:
In the continuation of the discussion at "Making Site Opaque -- This Strategy Feasible?" and my comment at http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2 I have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.