473,386 Members | 1,764 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,386 software developers and data experts.

Keep it TOP.....

I am launching 'frmMyWindow2.aspx' from the clicked event of a button from
frmMyWindow1.aspx.

Here is my code looks like.

Dim strScript As String = "<script
language=JavaScript>window.open('frmMyWindow2.aspx '
"null,'height=600,width=600,left=0,top=0,location= no,scrollbars=yes');</scri
pt>"

If (Not aspxPage.IsStartupScriptRegistered("CustomerNo")) Then

aspxPage.RegisterStartupScript("CustomerNo", strScript)

End If

After launching the window "frmMyWindow2.aspx", frmMyWindow1.aspx is coming
top of the screen. How to make the launched window ("frmMyWindow2.aspx") to
remain top of the screen?

Thank you very much for your reply.

Wilson


Nov 18 '05 #1
2 1012
You can't do always stay on top windows in IE (And thank god you can't or
those advertisements would drive me up the wall)!!!

The closest you can get is, as the window looses focus (OnBlur), you can
make it get the focus again (Window.Focus()).
Once you have done that, you would have created the world's most annoying
popup window.

If you want to bring the newly opened window on top soon as it is opened,
you could use the same trick as above, but instead of putting Window.Focus
in OnBlur, you could use the reference of the newly opened window and call
..Focus() on it from the calling page.

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik
"Wilson Smith" <WW*******@hotmail.com> wrote in message
news:OZ***************@TK2MSFTNGP11.phx.gbl...
I am launching 'frmMyWindow2.aspx' from the clicked event of a button from
frmMyWindow1.aspx.

Here is my code looks like.

Dim strScript As String = "<script
language=JavaScript>window.open('frmMyWindow2.aspx '
"null,'height=600,width=600,left=0,top=0,location= no,scrollbars=yes');</scri
pt>"

If (Not aspxPage.IsStartupScriptRegistered("CustomerNo")) Then

aspxPage.RegisterStartupScript("CustomerNo", strScript)

End If

After launching the window "frmMyWindow2.aspx", frmMyWindow1.aspx is
coming
top of the screen. How to make the launched window ("frmMyWindow2.aspx")
to
remain top of the screen?

Thank you very much for your reply.

Wilson

Nov 18 '05 #2
You can use window.showmodal() (for ie) or use the open with the modal
option.

PS:I hope i'had understand the answer.

"Wilson Smith" <WW*******@hotmail.com> ha scritto nel messaggio
news:OZ***************@TK2MSFTNGP11.phx.gbl...
I am launching 'frmMyWindow2.aspx' from the clicked event of a button from
frmMyWindow1.aspx.

Here is my code looks like.

Dim strScript As String = "<script
language=JavaScript>window.open('frmMyWindow2.aspx '
"null,'height=600,width=600,left=0,top=0,location= no,scrollbars=yes');</scri
pt>"

If (Not aspxPage.IsStartupScriptRegistered("CustomerNo")) Then

aspxPage.RegisterStartupScript("CustomerNo", strScript)

End If

After launching the window "frmMyWindow2.aspx", frmMyWindow1.aspx is
coming
top of the screen. How to make the launched window ("frmMyWindow2.aspx")
to
remain top of the screen?

Thank you very much for your reply.

Wilson

Nov 18 '05 #3

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

Similar topics

1
by: David | last post by:
This is called "evil hack problem" because my problems are due to me trying to do an evil hack. Please don't judge me, just believe that there are reasons for what I'm trying to do :-) I've got...
6
by: Steve Jorgensen | last post by:
I tried to fix a problem for a client today in which report sections and even individual text controls in some of their reports are being split across page boundaries. Of course, I was thinking...
3
by: Paul | last post by:
Hello, First I want to refer to the problem "WebRequest : execute a button" of a few days ago. The way I solved it, I loose my session, and as a consequence my session variables. I don't want...
6
by: Nad | last post by:
Hello, In order to go back to the previous page from a page with possible postbacks I keep Request.Referrer in ViewState and then use it to redirect to the previous page. However I am losing all...
0
by: Mike Hoorens | last post by:
Hi there. This looks like a good place to get help with a problem I am having: - We have a c# windows app, which performs an HTTPWebRequest to a IIS box on Internet to retrieve an XML response....
1
by: Nuno Magalhaes | last post by:
With the sniffer ethereal I get a lot of Connections Keep Alive in some sites like google.com and that returns me the Content-Length in the HTTP response header. When the connection is Close I...
15
by: l3vi | last post by:
I have a new system Im building that stores entries of what people are searching for on my sites. I want to be able to keep records of how many times a keyword was searched for daily, and from...
11
by: cty0000 | last post by:
I have some quiestion... I want to draw line,point,rectangles and etc... on the from So I code like this.. public update() { g = this.CreateGraphics(); g.FillRectangle(Brushes.White, x1,...
7
by: mail747097 | last post by:
I would like to keep IIS alive on my web site and prevent Application_End from occuring in global.asax. Any ideas?
0
by: db2admin | last post by:
hello, we take full on sunday and incremental delta rest of the days everyday. i want to keep only 8 weeks of backups on TSM. i am trying to understand the meaning of parameter "keep" in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.