Application start in global.asax

Posted by Zerotoinfinite on Stack Overflow See other posts from Stack Overflow or by Zerotoinfinite
Published on 2010-05-02T18:54:40Z Indexed on 2010/05/02 18:57 UTC
Read the original article Hit count: 143

Filed under:

Hi experts,

I am developing my application in asp.net 3.5 and sql server 2005, and I want to record the visitor info into my database, like once the visitor enter my website, I'll insert his browser details to the database. [It's not necessary that visitor login my website].

Now I am confused where to put my code, If I put insert function in every page_load then on every page it will execute and I'll not be able to get the exact number of visitor, visited my website. Shall I go with application_start in Global.asax ??

Please help.

© Stack Overflow or respective owner

Related posts about ASP.NET