Outline ·
[ Standard ] ·
Linear+
.NET Make a small windows appear when loading a webpage, ASP.NET
|
TSwangpr
|
Nov 18 2009, 09:32 AM, updated 17y ago
|
|
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
|
Nov 18 2009, 10:47 AM
|
Getting Started

|
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
|
Dec 2 2009, 08:58 PM
|
|
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.
|
|
|
|
|