Click here to Skip to main content
15,902,112 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: First Encounter with ASP.NET Pin
scottgp24-Mar-09 1:22
professionalscottgp24-Mar-09 1:22 
GeneralRe: First Encounter with ASP.NET Pin
AndyInUK24-Mar-09 1:50
AndyInUK24-Mar-09 1:50 
GeneralRe: First Encounter with ASP.NET Pin
scottgp24-Mar-09 2:19
professionalscottgp24-Mar-09 2:19 
AnswerRe: First Encounter with ASP.NET Pin
markymark8224-Mar-09 1:23
markymark8224-Mar-09 1:23 
GeneralRe: First Encounter with ASP.NET Pin
AndyInUK24-Mar-09 1:28
AndyInUK24-Mar-09 1:28 
GeneralRe: First Encounter with ASP.NET Pin
markymark8224-Mar-09 1:38
markymark8224-Mar-09 1:38 
QuestionHow to set the height of the iframe automatically Pin
venu65624-Mar-09 0:45
venu65624-Mar-09 0:45 
Questionhow to send website visitors to a holding page if over a certain amount Pin
markymark8224-Mar-09 0:43
markymark8224-Mar-09 0:43 
Hi all,

I'm looking at creating a system on our website to redirect abnormally large volumes of visitors to a holding page to limit the amount of bandwidth being used to keep our website working at a reasonable speed (The holding page would use virtually no bandwidth and would auto refresh to check if they can gain access yet or not).

What I'm after is to say if there are more than say 800 connections to the website, those over the 800 get assigned a queue number and sent to a holding page until a connection is free.

I had an idea to do it with Application variables and sessions, ie:

on Session_Start Application["CurrentConnCount"] = itself + 1

on Session_End Application["CurrentConnCount"] = itself - 1

However, the Session_End event can't be relied upon to be fired if a session just times out.

Is there another way I can do this, it all sounded nice and easy in my head, but the execution is currently eluding me.

I know I can limit the number of connections using iis, but this returns 'Service is Unavailable' and does not care if someone is in the middle of a transaction or not so isn't suitable.

Can I look at the number of current connections to the website using .net, rather than relying on events that may or may not be fired?

Thanks in advance for any help, I hope that all made sense and I'm not talking complete jibberish...
QuestionDebug is not working in VS 2008 Pin
anish27patel24-Mar-09 0:31
anish27patel24-Mar-09 0:31 
AnswerRe: Debug is not working in VS 2008 Pin
Abhijit Jana24-Mar-09 0:36
professionalAbhijit Jana24-Mar-09 0:36 
GeneralRe: Debug is not working in VS 2008 Pin
anish27patel24-Mar-09 0:59
anish27patel24-Mar-09 0:59 
GeneralRe: Debug is not working in VS 2008 Pin
Abhijit Jana24-Mar-09 3:36
professionalAbhijit Jana24-Mar-09 3:36 
QuestionUnit Test Error Pin
varshavmane24-Mar-09 0:11
varshavmane24-Mar-09 0:11 
QuestionRe: Unit Test Error Pin
4inder29-Aug-10 12:29
4inder29-Aug-10 12:29 
Questionasp.net 1.1 + crystal report Pin
sha_abd23-Mar-09 23:35
sha_abd23-Mar-09 23:35 
AnswerRe: asp.net 1.1 + crystal report Pin
Vimalsoft(Pty) Ltd24-Mar-09 2:07
professionalVimalsoft(Pty) Ltd24-Mar-09 2:07 
QuestionRe: asp.net 1.1 + crystal report Pin
sha_abd24-Mar-09 17:02
sha_abd24-Mar-09 17:02 
Questionhow to get i whois registrant information. Pin
kuyucakli23-Mar-09 23:33
kuyucakli23-Mar-09 23:33 
Questiondatagrid problem Pin
Kissy1623-Mar-09 23:18
Kissy1623-Mar-09 23:18 
AnswerRe: datagrid problem Pin
Abhishek Sur23-Mar-09 23:32
professionalAbhishek Sur23-Mar-09 23:32 
GeneralRe: datagrid problem Pin
Kissy1623-Mar-09 23:38
Kissy1623-Mar-09 23:38 
QuestionDundas-problem of width of Points Pin
Member 422892523-Mar-09 21:51
Member 422892523-Mar-09 21:51 
Questionhow to call a javascript function from content page if javascript is on the same page. Pin
Dattatraya K23-Mar-09 21:49
Dattatraya K23-Mar-09 21:49 
AnswerRe: how to call a javascript function from content page if javascript is on the same page. Pin
Abhishek Sur23-Mar-09 22:07
professionalAbhishek Sur23-Mar-09 22:07 
QuestionHide ASP.NET Ajax Popupcontrol Pin
samithaslk23-Mar-09 21:46
samithaslk23-Mar-09 21:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.