473,768 Members | 1,449 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 2964

"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
2557
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
8095
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
1873
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
2329
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
3630
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
9576
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10176
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...
1
9963
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9844
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...
0
8840
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7386
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
6656
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
5425
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2808
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.