473,327 Members | 2,103 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,327 software developers and data experts.

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 2937

"david" <an*******@discussions.microsoft.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.redirect), 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*******@discussions.microsoft.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.redirect), 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 IsClientScriptBlockRegistered( key := "csSB" )
then
Dim scriptString as String = "<script
language=JavaScript>"
scriptString += "function UpdateSB( StatusTxt )"
scriptString += "{window.status=StatusTxt;}"
scriptString += "</script>"

RegisterClientScriptBlock( 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.EventArgs) Handles MyBase.PreRender
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*******@discussions.microsoft.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.redirect), 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 IsClientScriptBlockRegistered( key := "csSB" )
then
Dim scriptString as String = "<script
language=JavaScript>"
scriptString += "function UpdateSB( StatusTxt )"
scriptString += "{window.status=StatusTxt;}"
scriptString += "</script>"

RegisterClientScriptBlock( 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.EventArgs) Handles MyBase.PreRender
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
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...
16
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...
17
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...
2
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
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...
4
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...
15
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,...
16
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...
5
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...
0
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...
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
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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...
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)...
1
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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.