Home All Groups Group Topic Archive Search About
Author
28 Mar 2005 6:47 PM
hecsan07
Can someone help me? I want to create a pop-up Window from ASP.NET. I am
using C#. I am a very beginner developer. Please help.

HS

Author
28 Mar 2005 7:07 PM
Steve C. Orr [MVP, MCSD]
The most reliable way is with a hyperlink, such as this:
<a href="whatever.aspx" target="_new">Click Me</a>
When they click this HTML hyperlink the page will open in a new window.

However, things get more complicated if you need the page to do a postback
before opening a new window.  In this case you can use client side
JavaScript to open a new window using the window.open method.
Here's more info:
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp

If that's too complicated for you, you can use this free window opener
control or examine the source code to
see how to open a window with your own code.
http://SteveOrr.net/articles/ClientSideSuite.aspx

Be aware that Windows XP SP2 tends to block popup windows so that might
cause you some
hassles in user education.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


Show quoteHide quote
"hecsan07" <hecsa***@hotmail.com> wrote in message
news:10C6875C-359B-401F-815A-90D5D14A7039@microsoft.com...
> Can someone help me? I want to create a pop-up Window from ASP.NET. I am
> using C#. I am a very beginner developer. Please help.
>
> HS
Are all your drivers up to date? click for free checkup

Author
28 Mar 2005 7:27 PM
darrel
> Be aware that Windows XP SP2 tends to block popup windows so that might
> cause you some
> hassles in user education.

Also note that many educated users use tabbed browsing these days and prefer
to put their windows where they like. Not that pop-ups can't be appropriate
(namely in application design) but just be aware that you may hit some
usability issues if your have a rather wide audience demographic.

-Darrel

Bookmark and Share