Capture the Browser Close event
Dot Net
Index Dot NetArchive
Previous
emailing in ASP.NET hi,
i'm using CDONTS component for emailing through one of my web service like
this
// Start of code
// 'email' is the CDONTS object name
email.send(EmailFrom.ToString, EmailTo.ToString, Subject.ToString,
Body.ToString, 1)
// End of code
the above call throws an exception with the message saying "Access is
denied.". i'm using Windows 2000 Professional. don't know what i'm doing
wrong over here. help me on this!
Thanks.
Farooq Khan
Tag: Capture the Browser Close event
2Free Website Templates I recall Microsoft releasing several .NET Website templates back when .NET
was first released. I believe one was an e-commerce site and there were some
others. However, today, I'm unable to find them.
Does anyone know a good site for some .NET Website templates from Microsoft
or anyone else for that matter. I may not mind paying a little but I'm not
looking for a strictly commercial site that charges for all the templates.
Thanks for any tips!
--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm
Tag: Capture the Browser Close event
3
can i capture the microphone voice with asp.net c# hi
i only want to know
can i capture the microphone voice with asp.net c#
like voice mail
Tag: Capture the Browser Close event
4
404 error after migrating to 2005 I created a webservice in Visual Studio 2003.
One of it's methods is a simple "ping" method that takes no parameters and
returns void. It's purpose is to "warm start" the web service. I also used
this as a quick check to see if my webservice was running properly - I would
go to the asmx page in IE, and invoke the method - if I got a blank page in
IE with "done" in the bottom-left status, I knew it was working properly - if
I got a 404 error I knew something was wrong.
I have successfully migrated the web service to Visual Studio 2005.
Everything works except that now when I invoke my ping method from IE, a 404
error is always returned, whether the service is running properly or not - I
have verified that it is running properly by calling it from a client.
It would be nice to be able to see a different result in IE depending on
whether the WS is up or not, when I invoke the method in IE. Does anyone
know how to fix this I see the same behavior whether I am deploying in
Visual Studio or IIS.
Thanks!
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-webservices/200601/1
Tag: Capture the Browser Close event
5
Forms Authentication Cookie from two applications Greetings,
How does ASP.NET Forms Authentication distinguish between
tickets/cookies issued by more than one application in the same domain
The domain name on the cookie will be the same in this case.
Let's assume the user name is the same as well.
What happens if the user logs on successfully to one application and
then navigates to a page in another application (in which he does not
have access) in the same domain.
How does Forms Authentication know that the cookie coming in was issued
for a different application and automatically re-direct to the login
page for the second application
Any ideas
Thanks.
-Harold
Tag: Capture the Browser Close event
1
sales tax information I have a product table with productID and UnitCost. I want to calculate sales tax if sales based on instate or state were requires sales tax. In shopping cart I have a Product Quantity and Unitcost per product. I do subtotal on each product and at the end I add up all and do the total.
Should I calculate sales tax per subtotal or should I calculate on total.
Although, I will caluculate tax after I collect Billing and Shipping Info which has state infornation. So When user fills shopping cart I will have just total but on few page later after collecting Billing and Shipping Info I will calculate tax.
Also I like to store total tax or per item base tax in oder table so when User want to see old order I can reassemble again.
Tag: Capture the Browser Close event
2
Calling .NET web service functions via HTTP GET/POST BeginXXX/EndXXX don't do anything asynchronously over the wire, they'll use
another thread to perform a synchronous call to the web server.
In short, there are no Begin/End methods on the server, that's just asynchronous
client code.
>Hi,
>
>I know you can call the WS methods using HTTP GET/POST, simply by
>providing the method name in the URL and appending the parameters as
>the method requires.
>
>However, we would like to use this call method to invoke the
>Beginxxx/Endxxx functions that are generated for each method. Is this
>possible Using the plain Begin-function-name in the URL did not work
>(although using POST/GET is enabled and works for the 'sync' calls).
>
>Thanks, Ron Peleg, Creo
>
Tag: Capture the Browser Close event
3
sql and excel (Type your message here)
hello.
can we insert data in sql as well as in excel simulatenously.basically i want to use excel to draw charts so i want my data from sql to move into excel and display the graph.i m using vb.net.kindly help as soon as possible as my project presentation is on head.plz tell me either of the ways.. i.e insertion of data can be done in excel as well as sql or how to shift the data.
thank you,
From: shiney agarwal
Posted by a user from .NET 247 (http://www.dotnet247.com/)
A5m4YL7PcEuVRJf0MItDDQ==
Tag: Capture the Browser Close event
4
How to display with different font color I use a dataGrid to list the scores of students.
If the score is less than 60, I want the score display with font of red.
The other will display with blue font.
How can I do that
Tag: Capture the Browser Close event
5
Can't execute precompilation web application I deployment a precompiled asp.net applicaiton to server.
But when user request the web page, server result in an error message
This tag is generate by a precompilation tool, can't be delete.
How can I do
Tag: Capture the Browser Close event
=Utf-8BQmlsbCBNYW5yaW5n=
2005-03-08 07:31:04 AM
I need to capture the event when the user closes the browser in my
application. I have some code in the session_End event, which works fine
when the session times out, but I need to end the session immediately when
the user closes the browser.
Does anyone know a way of doing this
--
Thanks,
Bill Manring
Top
Re: Capture the Browser Close event
Ken Dopierala Jr.
2005-03-08 07:44:00 AM
Hi Bill,
This is a tricky issue. The odds of you getting a succesful postback are
50/50
to say the best. I've had about a 95% success rate doing this:
1. Capture the onbeforeunload event in your body tag.
2. Incorporate the WebService.htc.
3. When the onbeforeunload event fires run a function that uses the
WebService.htc to tell a web service.
The browser will close before you get a response back but, about 95% of the
time, your web service will get hit and the user can successfully be logged
out. Note, that using the latest IE and Windows XP you will achieve almost
100% results. This is sort of complicated until you get the hang of it. If
this isn't something you want to try then here is another suggestion to
improve your chances but it might seem clunky to the user:
Have a main page that the user browses to. To run your app, they click a
button or link and then you use window.open to create a new browser
window. This is the window your app runs from. Don't ask me why, but the
success rate of a postback from onbeforeunload seems to be much higher for
browsers launched from javascript than from browsers launched by the user.
Good luck! Ken.
--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
www.webhost4life.com/default.asp
If you sign up under me and need help, email me.
"Bill Manring" wrote in message
news:********-****-****-****-************@*********.***...
>I need to capture the event when the user closes the browser in my
>application. I have some code in the session_End event, which works fine
>when the session times out, but I need to end the session immediately when
>the user closes the browser.
>
>Does anyone know a way of doing this
>
>--
>Thanks,
>
>Bill Manring
>
Top
Re: Capture the Browser Close event
=Utf-8BQmlsbCBNYW5yaW5n=
2005-03-08 08:37:00 AM
Ken,
Thanks for the response. It turns out that my application already works the
way you suggested, with the app started from javascript, so your idea seems
to work. Everything would be fine except for the fact that the Session_Start
event seems to fire twice. I tried starting the main page directly, not
using the javas script but the Session_Start event still fires twice.
I am trying to keep track of the number of users logged in to our
application for purposes of enforcing a "concurrent user" license model. I
didn't want to wait until the session timed out to decrement the active user
count, which I am storing in a database. If I rely on the Session_Start
event to increment the user count, I am incrementing the count by two, which
is of course not desirable.
Any ideas on why the Session_Start event fires twice
"Ken Dopierala Jr." wrote:
>Hi Bill,
>
>This is a tricky issue. The odds of you getting a succesful postback are
>50/50
>to say the best. I've had about a 95% success rate doing this:
>
>1. Capture the onbeforeunload event in your body tag.
>2. Incorporate the WebService.htc.
>3. When the onbeforeunload event fires run a function that uses the
>WebService.htc to tell a web service.
>
>The browser will close before you get a response back but, about 95% of the
>time, your web service will get hit and the user can successfully be logged
>out. Note, that using the latest IE and Windows XP you will achieve almost
>100% results. This is sort of complicated until you get the hang of it. If
>this isn't something you want to try then here is another suggestion to
>improve your chances but it might seem clunky to the user:
>
>Have a main page that the user browses to. To run your app, they click a
>button or link and then you use window.open to create a new browser
>window. This is the window your app runs from. Don't ask me why, but the
>success rate of a postback from onbeforeunload seems to be much higher for
>browsers launched from javascript than from browsers launched by the user.
>Good luck! Ken.
>
>--
>Ken Dopierala Jr.
>For great ASP.Net web hosting try:
>www.webhost4life.com/default.asp
>If you sign up under me and need help, email me.
>
>"Bill Manring" wrote in message
>news:********-****-****-****-************@*********.***...
>>I need to capture the event when the user closes the browser in my
>>application. I have some code in the session_End event, which works fine
>>when the session times out, but I need to end the session immediately when
>>the user closes the browser.
>>
>>Does anyone know a way of doing this
>>
>>Thanks,
>>
>>Bill Manring
>>
>
>
>
Top
Re: Capture the Browser Close event
Ken Dopierala Jr.
2005-03-08 08:55:00 AM
Hi Bill,
Do your users need to log in If so, are you using Forms or Windows
authentication If you do then you could update a date/time field in your
database each time you authenticate them in the Application_BeginRequest.
Then you could write a query to automatically set people as logged off when
they are inactive for a set number of minutes. I have web apps that track
online users like you but all of my apps use client-side scripting to
constantly hit the server behind the scenes every couple of seconds to prove
that they are still online. This requires javascript to be enabled in the
browser. Ken.
--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
www.webhost4life.com/default.asp
If you sign up under me and need help, email me.
"Bill Manring" wrote in message
news:********-****-****-****-************@*********.***...
>Ken,
>
>Thanks for the response. It turns out that my application already works
the
>way you suggested, with the app started from javascript, so your idea
seems
>to work. Everything would be fine except for the fact that the
Session_Start
>event seems to fire twice. I tried starting the main page directly, not
>using the javas script but the Session_Start event still fires twice.
>
>I am trying to keep track of the number of users logged in to our
>application for purposes of enforcing a "concurrent user" license model.
I
>didn't want to wait until the session timed out to decrement the active
>count, which I am storing in a database. If I rely on the Session_Start
>event to increment the user count, I am incrementing the count by two,
which
>is of course not desirable.
>
>Any ideas on why the Session_Start event fires twice
>
>"Ken Dopierala Jr." wrote:
>
>>Hi Bill,
>>
>>This is a tricky issue. The odds of you getting a succesful postback
are
>>50/50
>>to say the best. I've had about a 95% success rate doing this:
>>
>>1. Capture the onbeforeunload event in your body tag.
>>2. Incorporate the WebService.htc.
>>3. When the onbeforeunload event fires run a function that uses the
>>WebService.htc to tell a web service.
>>
>>The browser will close before you get a response back but, about 95% of
the
>>time, your web service will get hit and the user can successfully be
logged
>>out. Note, that using the latest IE and Windows XP you will achieve
almost
>>100% results. This is sort of complicated until you get the hang of it.
If
>>this isn't something you want to try then here is another suggestion to
>>improve your chances but it might seem clunky to the user:
>>
>>Have a main page that the user browses to. To run your app, they click
a
>>button or link and then you use window.open to create a new browser
>>window. This is the window your app runs from. Don't ask me why, but
the
>>success rate of a postback from onbeforeunload seems to be much higher
for
>>browsers launched from javascript than from browsers launched by the
>>Good luck! Ken.
>>
>>Ken Dopierala Jr.
>>For great ASP.Net web hosting try:
>>www.webhost4life.com/default.asp
>>If you sign up under me and need help, email me.
>>
>>"Bill Manring" wrote in message
>>news:********-****-****-****-************@*********.***...
>>>I need to capture the event when the user closes the browser in my
>>>application. I have some code in the session_End event, which works
fine
>>>when the session times out, but I need to end the session immediately
when
>>>the user closes the browser.
>>>
>>>Does anyone know a way of doing this
>>>
>>>Thanks,
>>>
>>>Bill Manring
>>>
>>
>>
>>
Top
Re: Capture the Browser Close event
=Utf-8BQmlsbCBNYW5yaW5n=
2005-03-08 09:15:00 AM
Ken,
The users do login, when the application is isntalled they decide whether
they want to use Windows authentication or Forms authentication. I will
consider another stategy - keeping a table of logged in users in the
database. This might allow the possibility of users "sharng" a common login
to circumvent the license restriction, but maybe I'll live with that. I'll
give it some more thought.
Thanks for your help.
"Ken Dopierala Jr." wrote:
>Hi Bill,
>
>Do your users need to log in If so, are you using Forms or Windows
>authentication If you do then you could update a date/time field in your
>database each time you authenticate them in the Application_BeginRequest.
>Then you could write a query to automatically set people as logged off when
>they are inactive for a set number of minutes. I have web apps that track
>online users like you but all of my apps use client-side scripting to
>constantly hit the server behind the scenes every couple of seconds to prove
>that they are still online. This requires javascript to be enabled in the
>browser. Ken.
>
>--
>Ken Dopierala Jr.
>For great ASP.Net web hosting try:
>www.webhost4life.com/default.asp
>If you sign up under me and need help, email me.
>
>"Bill Manring" wrote in message
>news:********-****-****-****-************@*********.***...
>>Ken,
>>
>>Thanks for the response. It turns out that my application already works
>the
>>way you suggested, with the app started from javascript, so your idea
>seems
>>to work. Everything would be fine except for the fact that the
>Session_Start
>>event seems to fire twice. I tried starting the main page directly, not
>>using the javas script but the Session_Start event still fires twice.
>>
>>I am trying to keep track of the number of users logged in to our
>>application for purposes of enforcing a "concurrent user" license model.
>I
>>didn't want to wait until the session timed out to decrement the active
>user
>>count, which I am storing in a database. If I rely on the Session_Start
>>event to increment the user count, I am incrementing the count by two,
>which
>>is of course not desirable.
>>
>>Any ideas on why the Session_Start event fires twice
>>
>>"Ken Dopierala Jr." wrote:
>>
>>>Hi Bill,
>>>
>>>This is a tricky issue. The odds of you getting a succesful postback
>are
>>>50/50
>>>to say the best. I've had about a 95% success rate doing this:
>>>
>>>1. Capture the onbeforeunload event in your body tag.
>>>2. Incorporate the WebService.htc.
>>>3. When the onbeforeunload event fires run a function that uses the
>>>WebService.htc to tell a web service.
>>>
>>>The browser will close before you get a response back but, about 95% of
>the
>>>time, your web service will get hit and the user can successfully be
>logged
>>>out. Note, that using the latest IE and Windows XP you will achieve
>almost
>>>100% results. This is sort of complicated until you get the hang of it.
>If
>>>this isn't something you want to try then here is another suggestion to
>>>improve your chances but it might seem clunky to the user:
>>>
>>>Have a main page that the user browses to. To run your app, they click
>a
>>>button or link and then you use window.open to create a new browser
>>>window. This is the window your app runs from. Don't ask me why, but
>the
>>>success rate of a postback from onbeforeunload seems to be much higher
>for
>>>browsers launched from javascript than from browsers launched by the
>user.
>>>Good luck! Ken.
>>>
>>>Ken Dopierala Jr.
>>>For great ASP.Net web hosting try:
>>>www.webhost4life.com/default.asp
>>>If you sign up under me and need help, email me.
>>>
Bill Manring" wrote in message
>>>news:********-****-****-****-************@*********.***...
I need to capture the event when the user closes the browser in my
application. I have some code in the session_End event, which works
>fine
when the session times out, but I need to end the session immediately
>when
the user closes the browser.
Does anyone know a way of doing this
Thanks,
Bill Manring
>>>
>>>
>>>
>
>
>
Top
Index
The team