Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / December 2004

Tip: Looking for answers? Try searching our database.

Creating a control that pops up a window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Faizan Ahmed - 21 Dec 2004 21:02 GMT
Hello all,

I am developing a custom grid control. I want to add the filter feature in
the columns of the grid, lets say when the user clicks the column header(or
any image on header) a new form pop-ups asking the user of the filtering
criteria.. when the user enters the criteria and press OK on the pop-up form
the grid control should refresh itself to show only the filtered data.. I
know that its not a good practice to use Pop-ups in web forms but this is a
must-have requirement. The problem i m facing is that, how can i embed a web
form (that will pop-up) in a server control? i wonder if it is even
possible?? if it is not that how can i embed a window written in DHTML in
that control? and one more question, how will the pop-up window notify the
control when it is closed?
Any help would be highly appreciated..

Thanks Mr. John Saunders for ur help with my posts earlier
John Saunders - 21 Dec 2004 22:38 GMT
> Hello all,
>
[quoted text clipped - 14 lines]
> control when it is closed?
> Any help would be highly appreciated..

This is an area of JavaScript in which I am not an expert. Someone else may
be able to point you to information on how to do pop-up windows in general,
and how to make them work with .NET in particular.

Note that one alternative to a pop-up window is to "pop up" a div from your
same form. The div would start off as invisible, but when the header is
clicked, you could make the div visible and make it float over the form.
This div could contain the filter criteria and Close and OK buttons.
Clicking OK could post the criteria back to the server.

Again, I've never done this, but I've seen others talk about floating divs.
I know of no reason that this div couldn't contain Label, TextBox, and
Button controls.

> Thanks Mr. John Saunders for ur help with my posts earlier

You're welcome.

John Saunders

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.