473,775 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE Browser and ASP.NET

(1) How do I update the IE browser's status bar from
within an ASP.NET web application?

(2) How can I capture the event of closing the IE browser
from within an ASP.NET web application?

(3) How can I suspend any activity - disable accepting
keyboard or mouse clicks on a web page until the client
request is processed by an IIS server.

Thanks.
Nov 22 '05 #1
3 2966

"david" <an*******@disc ussions.microso ft.com> wrote in message
news:03******** *************** *****@phx.gbl.. .
(1) How do I update the IE browser's status bar from
within an ASP.NET web application?
You send a client-side script down to the browser and use the window.status
property.

(2) How can I capture the event of closing the IE browser
from within an ASP.NET web application?
You send a client-side script down to the browser and use the window.close
method.

(3) How can I suspend any activity - disable accepting
keyboard or mouse clicks on a web page until the client
request is processed by an IIS server.
This one is a bit more tricky. You could redirect the browser to another
page upon submission (server.execute or server.transfer or
response.redire ct), but you can't suspend client events.

The bottom line is that if you want to affect the browser, you must do so at
the client level and this means with client-side script.

Thanks.

Nov 22 '05 #2
-----Original Message-----

"david" <an*******@disc ussions.microso ft.com> wrote in messagenews:03******* *************** ******@phx.gbl. ..
(1) How do I update the IE browser's status bar from
within an ASP.NET web application?
You send a client-side script down to the browser and use

the window.statusproperty.

(2) How can I capture the event of closing the IE browser from within an ASP.NET web application?
You send a client-side script down to the browser and use

the window.closemethod.

(3) How can I suspend any activity - disable accepting
keyboard or mouse clicks on a web page until the client
request is processed by an IIS server.
This one is a bit more tricky. You could redirect the

browser to anotherpage upon submission (server.execute or server.transfer or
response.redir ect), but you can't suspend client events.

The bottom line is that if you want to affect the browser, you must do so atthe client level and this means with client-side script.

Thanks.

.


I've created a VB function called cs_StatusBar() as
follows...

Private Sub cs_StatusBar()
If Not IsClientScriptB lockRegistered( key := "csSB" )
then
Dim scriptString as String = "<script
language=JavaSc ript>"
scriptString += "function UpdateSB( StatusTxt )"
scriptString += "{window.status =StatusTxt;}"
scriptString += "</script>"

RegisterClientS criptBlock( key := "csSB", script :=
scriptString )
End If
End Sub

I've registed the client-side script as follows...

Private Sub Page_PreRender( ByVal sender As Object, ByVal e
As System.EventArg s) Handles MyBase.PreRende r
cs_StatusBar() '' register cs script
End Sub

Is there anyway to dynamically call this script from VB
ASP.NET web form code?

ex: If i'm loading some data, after despressing a "load"
button - I'd like to update the status bar. Then when
complete, reset the status bar message to "done".

Any suggestions!

Nov 22 '05 #3
-----Original Message-----

"david" <an*******@disc ussions.microso ft.com> wrote in messagenews:03******* *************** ******@phx.gbl. ..
(1) How do I update the IE browser's status bar from
within an ASP.NET web application?
You send a client-side script down to the browser and use

the window.statusproperty.

(2) How can I capture the event of closing the IE browser from within an ASP.NET web application?
You send a client-side script down to the browser and use

the window.closemethod.

(3) How can I suspend any activity - disable accepting
keyboard or mouse clicks on a web page until the client
request is processed by an IIS server.
This one is a bit more tricky. You could redirect the

browser to anotherpage upon submission (server.execute or server.transfer or
response.redir ect), but you can't suspend client events.

The bottom line is that if you want to affect the browser, you must do so atthe client level and this means with client-side script.

Thanks.

.


I've created a VB function called cs_StatusBar() as
follows...

Private Sub cs_StatusBar()
If Not IsClientScriptB lockRegistered( key := "csSB" )
then
Dim scriptString as String = "<script
language=JavaSc ript>"
scriptString += "function UpdateSB( StatusTxt )"
scriptString += "{window.status =StatusTxt;}"
scriptString += "</script>"

RegisterClientS criptBlock( key := "csSB", script :=
scriptString )
End If
End Sub

I've registed the client-side script as follows...

Private Sub Page_PreRender( ByVal sender As Object, ByVal e
As System.EventArg s) Handles MyBase.PreRende r
cs_StatusBar() '' register cs script
End Sub

Is there anyway to dynamically call this script from VB
ASP.NET web form code?

ex: If i'm loading some data, after despressing a "load"
button - I'd like to update the status bar. Then when
complete, reset the status bar message to "done".

Any suggestions!

Nov 22 '05 #4

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

Similar topics

7
10072
by: Szar | last post by:
JS noob. I've seen plenty of browser detection scripts but they all seem to be slightly different and don't really fit my needs. I have various places where if the browser is IE I'd like to display else . For example, if a browser is IE I want to use this CSS file otherwise use a different one and if it's IE make this cell x pixels high else make it y pixels high. I'm sure this is easy, please excuse my stupidity. Steve.
16
2874
by: Java script Dude | last post by:
To all Mozilla JS Guru's (IE dudes welcome), I have spent the last three years developing complex DHTML applications that must work in IE 5.5sp2+ but I use Mozilla 1.3+** to do all my development. I have build some cross browser debuggers so my users can send me verbose debug dumps. I have some success but have come to a roadblock with the basic underlying JavaScript models. The only way to get a complete stack in IE is to use the...
17
2559
by: lawrence | last post by:
How is it possible that the question "How do I detect which browser the user has" is missing from this FAQ: http://www.faqts.com/knowledge_base/index.phtml/fid/125 and is only here on this with a link to old information that suggests use of "navigator": http://developer.irt.org/script/43.htm
2
8097
by: Craig G | last post by:
is there a way to distinguish whether a client is using IE or Netscape? is there some sorta check i can run on the Page_Load event? or where would be the best place to do this? Cheers, Craig
1
1875
by: Dave Harrington | last post by:
Greetings all - We have a client who uses Lotus Notes as their default e-mail. The version of Lotus they use can run internet explorer windows within Lotus. I'd like to find if they are launching our web application through lotus notes or not. I've stumbled across the following code: private void Button1_Click(object sender, System.EventArgs e)
4
23732
by: Peter Larsen | last post by:
Hi, I want to be able to show a file browser embedded on a form - a browser which is similar to the browser you get by SHBrowseForFolder(). Is that possible ? Thank you in advance. BR Peter Larsen
15
2330
by: CMM | last post by:
So I'm half way through overseeing a large project in ASP.NET 2.0. My superiors have decided that it would be nice if we ensured the site worked on all the major platforms (as they see it: IE, FireFox, and Safari). We've made heavy usage of the new MENU control and other intrinsic 2.0 controls.... nothing fancy! just using ASP.NET's built-in controls and very nice, pervasive, and clean usage of CSS. Now I find after more testing that the...
16
2360
by: petermichaux | last post by:
Hi, Does anyone have a a cross-browser setOpacity function that does not use browser sniffing? I looked at the Yahoo! UI function and it detects IE by looking for window.ActiveXObject. I also looked at Scriptaculous and it uses navigator.userAgent. Thanks, Peter
5
3632
by: Mufasa | last post by:
We want to keep track of what OS/Browser people are using for our website. How can I find that out so that I can write it to a DB ? I know how to get it into the DB; I just need to know how to get that stuff in .Net. Thanks. J.
0
1476
by: etnaelk | last post by:
Hi all, I have a real bugger of a problem that I just haven't been able to figure out. I am working on writing my own proxy server in C# using TcpListener, TcpClient, HttpWebRequest/Response and NetworkStream. I have everything working pretty well except images won't load to their location. ------------------------------------------------------------------------------------------------------------------...
0
10270
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10109
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9916
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7464
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6718
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5486
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4017
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2853
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.