Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

.NET Make a small windows appear when loading a webpage, ASP.NET

views
     
TSwangpr
post Nov 18 2009, 09:32 AM, updated 17y ago

Enthusiast
*****
Senior Member
758 posts

Joined: Jan 2003
From: Angel Heaven X
How to make another small windows appear when loading a webpages?

Example : When user login , after authentices, will go to the main first pages of aplication.....

I wanna have another windows popup on top of themain pages


ghost181
post Nov 18 2009, 10:47 AM

Getting Started
**
Junior Member
216 posts

Joined: Feb 2006
From: 神秘的な地獄


you can try to add the following code when the authenticate is allow

CODE

Page.ClientScript.RegisterStartupScript(GetType(Page), "xxx Windows", "<script language='javascript'>window.open('LINK-YOU-WANT-TO-POP','mywindow','menubar=1,resizable=1,width=350,height=250');window.location='LINK-YOU-WANT-TO-VISIT';</script>")


remember to add Inherits System.Web.UI.Page, else it wont work.
Dothan
post Dec 2 2009, 08:58 PM

Dingle Berries
******
Senior Member
1,054 posts

Joined: Jan 2003


QUOTE(ghost181 @ Nov 18 2009, 10:47 AM)
you can try to add the following code when the authenticate is allow

CODE

Page.ClientScript.RegisterStartupScript(GetType(Page), "xxx Windows", "<script language='javascript'>window.open('LINK-YOU-WANT-TO-POP','mywindow','menubar=1,resizable=1,width=350,height=250');window.location='LINK-YOU-WANT-TO-VISIT';</script>")


remember to add Inherits System.Web.UI.Page, else it wont work.
*
She didn't mention whether it is a Window pop up or DOM window pop up. But your solution is the normal Window popup.

@TS, which one you are referring? If you want a DOM window popup, you need to get a jscript lib (Jquery for better cross browsers support), then use their plugin for doing inline DOM popup.

 

Change to:
| Lo-Fi Version
0.0176sec    0.58    5 queries    GZIP Disabled
Time is now: 14th December 2025 - 09:36 PM