Get the number of users in my website - asp.net [closed] - asp.net

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
how can I get how many people registered to my website?
in ASP.NET

You're not going to get much better then incrementing in Session_Start and decrementing in Session_End unless you use some other means such as a database.
When you are authenticating your requests you could update a timestamp in the database to show that the user has been active, and after a given time (say 10-15 minutes), the query thatcollects the number of current users ignores that row in the database (thus decrementing the count).

Related

add new field to the standard aspnet_Membership table [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have added a new field to the standard aspnet_Membership table.
Now that it's added, how do i get or set this field by UserId?
Delete, plese.(5-8-2013)
You should not change default membership table . Instead use profile fields. Following articles will help .
http://weblogs.asp.net/scottgu/archive/2005/10/18/427754.aspx
http://msdn.microsoft.com/en-us/library/2y3fs9xs.aspx
I don't recommend to use the profile features due it have a way too dirty to store the data. Only if you need just one or two more fields, it may have sense.
Anyway, you need to attempt to document yourself a little more before ask this kind of questions...

How to keep page view count? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
When I refresh the page, page count does not increase. It is kept in session or any way. For example, in SO, I clicked any qouestion, question view count increase. And I return that question again after look another it is not increase.
What is the logic? And Sorry my poor english. I hope I can explain. I dont know correct tag for this question too.
Thanks.
You may check the IPAddress of the request coming from and check it. If A request already came (page view) from this IP for this page, then do not increase the count, else increase.
If you store it in session it can be hacked by different browsers. Ex: If i open the page in 3 different browsers ,the count will be increased 3 numbers. So do not use Session for that.
You can have a table to do that. Have a QuestionId, IPAddress, DateVisited columns. It is up to you to decide whether the visit should be counted if user visit on a different day from the Same IP for same question . Since you have the data in table, you can do the IF condition as per your wish.

Google Analytics, limit a User to a date range [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I know I can limit a user to a particular profile, but as a subset of that, can I limit them to a date range without having to create a new tracking number? i.e. I want the client to see 12/1/11->1/1/12 ONLY.
Not if you're giving them access to the Google Analytics reporting interface.
You could implement this yourself by building a client-facing reporting interface via the Google Analytics API, but it'd be a lot of work.

what can be best - Dataset or datareader? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have stock market application which will be frequently used by millions of members at a time.
What could be the best option to retrieve data from my database based on the retrieval time and Database load - DataReader or DataSet?
If you will have a large amount of people reading the data, then you should use the DataReader paradigm. This way you can quickly get in and out with the trouble of schema inference. I would also recommend that once you pull the data from the server that you cache it. Even if it is only cached for 1 second, that will improve the number of connections from the database that will retrieve the same data. Otherwise, you could quickly saturate your connection pool if you are not careful as well as some possible locking.

How to rectify the error in asp.net [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
I create an one webpage in asp.net all the time i am facing the following pbm how to rectify it..
if(ds.Tables[0].Rows.Count > 0)
Maybe you need to check that ds.Tables[0] exists first
If you are constantly checking on your pages to see if that dataset has a table with rows, I would think you would want to make some helper class to check that your dataset is not null, and that whatever tables have actual rows. Also you might want to think about moving these to typed datasets.

Resources