473,320 Members | 1,814 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,320 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 1467
"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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.