|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Pop-up WindowCan 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 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. 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 > Be aware that Windows XP SP2 tends to block popup windows so that might Also note that many educated users use tabbed browsing these days and prefer> cause you some > hassles in user education. 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
Other interesting topics
Huge HTML output perfomance
New controls in ASP.NET 2.0 input type="file" grabs ENTIRE file path in IE? Tabs in ASP.Net Layering Images in ASP.Net 1.1 javascript debugging Dynamic Session State Mode inside of Web.Config paging problem Disable Cookieless Sessions on Single Page? question about proper way to show an IList of objects? |
|||||||||||||||||||||||