Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
How to display curent date and time and also visitors counting
November 30, 2010
hi i am creating web site using C# and Sql server-2005. in this i have visitors counting and date and time it is displayed in top of the corner give me c# code and idea
Posted Date: November 30, 2010 Points: 5
For getting time, you have to register a custom field on submit - that will give you the client date/time.
Please refer: http://weblogs.asp.net/mikebosch/archive/2007/11/15/getting-the-client-browsers-date-and-time-with-asp-net.aspx
For getting the user count, you can use the Application object.
Get the value from Application["VisitorCount"], convert it into integer,
increment and set it back. You should take care of null conditions too.
To post reply
Related Questions Related Questions
how to display photo of members in gridview at run time?
Doubt in Date/time
Automatic Mail Send on Scheduled Date time in Asp.net
display dynamic time
asp.net display dynamic time
display only date from gridview to textbox
How to Add USA Time and Date in Data Base?
How to display Searched Records in Highlight way inside GRIDVIEW ?
how its display the data gridview in vb.net?
one project are work in two member we are divide equal form we are join this form to one to copy to form dost not copy to form many time try to way but cannot copy how its copy or join for two form ?
Latest Forum Questions From The Same Category
Slash(/) in Combobox
attaching the report in the web page
How do i get payment status in redirect page using bitpay?
Login with Facebook and Save details in database
Login with facebook account in my website
How to make a nested datalist control?
What class does Icon derive from?
What are the validation controls?
What''s the difference between an interface and abstract class?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend