473,396 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Popups

hi all!

is there any possibility that i could create a pop-up in asp.net?

thanks a million!

-A
Nov 18 '05 #1
6 1471
"Ann Marinas" wrote:
is there any possibility that i could create a pop-up in asp.net?


Sure. It's not because you're using a server-side scripting technology that
you can't use client-side scripting.

You can use window.open() freely in your document.

Steven

- - -
Nov 18 '05 #2
you can use showModalDialog to open a popup window.

StringBuilder strScript = new StringBuilder();
strScript.Append("javascript:window.showModalDialo g");
strScript.Append("('openingpage.aspx");
strScript.Append("','','dialogHeight:200px;dialogW idth:300px');");

and you can add this to your button using this.

button.Attributes.Add("OnClick",strScript.ToString ());

HTH
"Ann Marinas" <ma*******@hotmail.com> wrote in message
news:e8**************@TK2MSFTNGP09.phx.gbl...
hi all!

is there any possibility that i could create a pop-up in asp.net?

thanks a million!

-A

Nov 18 '05 #3
Hi, Steven!

Thank you for answering my question. I really do appreciate it!

How can I use the 'window.open()' method?

-A

"Steven Spits" <st**********@servico.be.net> wrote in message
news:un**************@tk2msftngp13.phx.gbl...
"Ann Marinas" wrote:
is there any possibility that i could create a pop-up in asp.net?
Sure. It's not because you're using a server-side scripting technology

that you can't use client-side scripting.

You can use window.open() freely in your document.

Steven

- - -

Nov 18 '05 #4
Read the MSDN documentation.

"Ann Marinas" <ma*******@hotmail.com> wrote in message
news:uM**************@TK2MSFTNGP11.phx.gbl...
Hi, Steven!

Thank you for answering my question. I really do appreciate it!

How can I use the 'window.open()' method?

-A

"Steven Spits" <st**********@servico.be.net> wrote in message
news:un**************@tk2msftngp13.phx.gbl...
"Ann Marinas" wrote:
is there any possibility that i could create a pop-up in asp.net?


Sure. It's not because you're using a server-side scripting technology

that
you can't use client-side scripting.

You can use window.open() freely in your document.

Steven

- - -


Nov 18 '05 #5
Thanks Gibs! It solved my problem!

Really do appreciate it! :D

A
"Gibs" <do*********@yahoo.com> wrote in message
news:uZ**************@TK2MSFTNGP09.phx.gbl...
you can use showModalDialog to open a popup window.

StringBuilder strScript = new StringBuilder();
strScript.Append("javascript:window.showModalDialo g");
strScript.Append("('openingpage.aspx");
strScript.Append("','','dialogHeight:200px;dialogW idth:300px');");

and you can add this to your button using this.

button.Attributes.Add("OnClick",strScript.ToString ());

HTH
"Ann Marinas" <ma*******@hotmail.com> wrote in message
news:e8**************@TK2MSFTNGP09.phx.gbl...
hi all!

is there any possibility that i could create a pop-up in asp.net?

thanks a million!

-A


Nov 18 '05 #6
You should be aware that showModalDialog will only work in IE and is modal
(will take focus away from the window that opens the modal dialog until you
close it....)

window.open may be more what you are looking for, in which case you can use
a similar approach but replace the window.showModalDialog with the
window.open call. (Check MSDN for more detail on wither of these methods
and the parameters to pass to them).

Matt

"Gibs" <do*********@yahoo.com> wrote in message
news:uZ**************@TK2MSFTNGP09.phx.gbl...
you can use showModalDialog to open a popup window.

StringBuilder strScript = new StringBuilder();
strScript.Append("javascript:window.showModalDialo g");
strScript.Append("('openingpage.aspx");
strScript.Append("','','dialogHeight:200px;dialogW idth:300px');");

and you can add this to your button using this.

button.Attributes.Add("OnClick",strScript.ToString ());

HTH
"Ann Marinas" <ma*******@hotmail.com> wrote in message
news:e8**************@TK2MSFTNGP09.phx.gbl...
hi all!

is there any possibility that i could create a pop-up in asp.net?

thanks a million!

-A


Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Art | last post by:
NEWBIE ALERT! Esteemed List Participants and Lurkers: (System: P-II 350, 192 meg, Win98 SE, Python 2.2.3, wxPythonWIN32-2.4.1.2-Py22.exe) I'm having a lot of fun getting started with Python...
52
by: Harlan Messinger | last post by:
Can you help me figure out what to do about popups? Sometimes we develop web applications where popups make very good sense for precisely the same reasons they make sense in traditional...
7
by: Bob Wightman | last post by:
I've had a look through the archives but cannot find anything that really answers this so... I have a menu system composed of a series of "buttons" (actually span elements) that react to the...
3
by: PSERVE | last post by:
Is the a way of preventing popups from other sites while your page is loading? -- Regards Nik http://www.itconsultancy.org
2
by: Tom Szabo | last post by:
Hi, >>IE in Windows XP Service Pack 2 has a popup blocker that blocks unsolicited >>popups >>IE (other than Windows XP Service Pack 2) also has many add-ons (Google toolbar, >>Yahoo! toolbar,...
1
by: dejausenet | last post by:
I have firefox 1.0, running on winxp Firefox blocks popups fine, but sometimes, for selected occassions only, i would like to be able to have window popup; without enabling whole domains, as...
4
by: ciprian.dosoftei | last post by:
Hello, I just finished a tutorial website regarding the development of DHTML popups. The site features several examples with downloadable samples. It also feature more complex effects like...
4
by: dd | last post by:
I have a scenario where my popups are being blocked by IE6+ and Firefox. The problem is that although the popup is a direct result of the user clicking on the link (meaning that they WANT the...
1
by: YotamElal | last post by:
Hello, I have a popup problem. When a popup is opened, I want all other popups to close immediatly. (except for its self and it's child popups) Here is my code: code: <!DOCTYPE HTML PUBLIC...
1
by: Moe Sisko | last post by:
Using : ASP.NET 2.0, IE 7. This is a strange problem with popups not working in IE to remote sites, even though popups are allowed in IE. To reproduce, create web site with two pages,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.