C# - Determine How Many Unique Users Viewed A Webpage?

Jun 19, 2010

I am working on a component in C# to record how many unique viewers have viewed my website / page, making certain the same user revisiting, is not recorded twice. What is an efficient method to write such a component? Do you track cookies or session objects?

Would I record their ip address (which is not static) or computer name?

This information would be stored in a database (as far as I know)

View 6 Replies


Similar Messages:

C# - Export The Currently Viewed Webpage To PDF?

May 4, 2010

I looking for the easiest way to export the currently viewed asp.net web page to a PDF document using iTextSharp - it can be either a screenshot of it or passing in the url to generate the document.

View 2 Replies

How To Create A Unique Webpage Address

Jun 16, 2010

Is there a standard way to create unique web page address in ASP.NET? I'm sending surveys to customers and will be including a link to the web page. For example:

http://www.mysurveypages.foo/survey/UniqueID

I would then customize the survey based on who I sent it to. I know it can be done by passing in a unique parameter to a page but I curious about doing it this way.

View 5 Replies

Security :: Getting A Unique ID For Logged In Users?

Mar 8, 2011

I am using ASP.Net Forms based security with the login control. On my site a user will make a number of selections that will be written to a database. Is their a unique user id that I can get from the AspNetSqlProvider that I can use to id users in my database? When a user logs back in after being away I want to be able to retireve the users information using this id.

View 7 Replies

How To Determine If Web Request Is To A Resource That Allows Anonymous Users Or Not

Jul 23, 2010

I have denied anonymous access to the entire application using the following Web.Config setting:

<authorization>
<deny users="?" />
</authorization>

Then, for various paths, I have allowed anonymous access using Web.Config settings such as this:

<location path="Home/ShowLogin">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>

I'd like to be able to determine during the processing of a given request whether the requested URL is to path that allows anonymous users or whether the request is to a path that denies anonymous users.

What is the most elegant way of determining this?

View 1 Replies

Architecture :: Providing Users With Unique Home Page Like In Facebook?

Oct 29, 2010

I am trying to provide each user with his/her own link to my website link we have in facebook e.g www.facebook.com/user_name.

How can we do this.

View 2 Replies

Control A Users USB Device Via A Webpage?

Feb 8, 2010

I'm wondering if there is a way to create an asp.net webpage that will connect a visitors USB device to an application on the windows bases server? This way we avoid having to install a software on the visitors computer to control a USB device update that they purchase form us.

All they have to do is visit our update page, plug their deivce to the USB, and have our site update the usb hardware. Possible? or am I dreaming? :)

i found software like: USB over IP, and few others. But not show ure its possible to create a C# or vb.net based ASP.net page to control the visitors USB device.

View 5 Replies

How To Provide Ability For Users To Comment On Webpage

May 28, 2010

I need a few options on how I will allow a user to post simple text comments to my website page(s). I will require login to post comments in order to prevent spam posters.

I'm using Visual Web Developer 2010 to design my website. I'm not real familiar with it and do not know if it includes the tool I need to accomplish this task easily.

View 42 Replies

Active Directory/LDAP :: Get Unique ID Of UserName / Is GUID Is The Unique Id Of Each User

Nov 23, 2010

How to get Unique ID of LDAP logged in User? Is GUID is the unique id of each user?

View 1 Replies

State Management :: Maintain Session On Of Users On A Webpage?

Oct 25, 2010

I have to maintain session of two users on a sigle page.And the path is. UserPath:

1.User logins with his credentials((We retrive their credentials from login table) .
2.He invites some of his friends for a birthday party.
3.And send an url link to share some of the gifts with them in which gifts are provided in Share.aspx page.
4.Userlogouts.

Invites path:

1.Invite logs in with his credentials(We retrive their credentials from invites table).
2.He is directed to go to Share.aspx and list the items he require.
3.And he logs out.

Now i have problem in maintaining session for both the user and invite. How can i maintain the session so,that the user can identify a particular invite from the list of invites an his chosen items.

View 1 Replies

State Management :: Count The Number Of Users Per Webpage?

Sep 27, 2010

I have a website that has 10 aspx pages in it, and I'm trying to count how many users are on any one page at a time, and display that number on the web page. I have set it up to use an Application object ("TotalViewers"), and initialize it to 0 in the Application_Start event handler of the global.asax file. My reasoning (probably way off base) is to increment the count on each page load, and then decrement the count on each page unload. The increment part works ok, but when I add the code in the page unload event handler to decrement, it seems that Unload happens before the Page is presented to the client, so the value always stays the same (adds one in page load, subtracts one in page unload).

How else can I track number of users on each page? (simply, becuase I am still a beginner). I have already done some google searching and haven't come up with anything useful.

All my pages are being navigated via a TreeView control.

View 6 Replies

Security :: Redirect Logged In Users To Another Webpage In Visual Studio?

Apr 2, 2010

In the web.config file i have put some code in so that when users log in they will be re-directed to another part of the website which only registered users can access. for the admin part only the admin can log in and it takes him to the admin section and that works fine. it is only this that is causing me problems.

the code i inserted for which the user needs to be diverted to is:

<location path ="UserLoggedInFindUs.aspx">
<system.web>
<authorization>
<deny users ="?"/>

[Code]....

View 2 Replies

Web Forms :: Is GUID (globally Unique Identifier) Unique

Aug 25, 2010

Is GUID (globally unique identifier) really unique, or it can be duplicate.

System.Guid.NewGuid().ToString()

View 6 Replies

Unique Number For Unique Visitor On Button Click In Vb.net?

Mar 21, 2011

How generate the unique no. 1,2,3 and so on .... on button click of each new user ..

the code mentioned below is a readwrite coding in vb.net ...

but the problem is it generate the same id for different users on button click event... but i want the no. of times button clicked the new ids will be generated

[code]....

View 1 Replies

SQL Reporting :: Printing .rdl Reports Using The ReportViewer Control From Webpage To Users Client

Oct 19, 2010

I have developed a set of ssrs .rdl reports and am trying to display them from the reportviewer control embeded in my asp web page. The problem is that when I select the print icon on the reportviewer control I am prompted to install ms sql server. What is the best way to print .rdl reports from the web page's embeded reportviewer control to the client's local network printer.

View 2 Replies

Associating A Unique Session Id With Every Unique User In C#

Mar 18, 2011

How can I get unique session ID for every unique user who logs in ?? I'm using asp.net/c#

View 1 Replies

How To Display Data With Unique Value And Count Of That Unique Value

Feb 11, 2010

How To Display Data In Following Format?

In the Format below abc has multiple occurance which count is displayed in brackets as 2669.

[code]....

View 7 Replies

How To Get The Gallery To Be Viewed As A Thumbnail

Jan 25, 2011

I need the gallery to be viewed as a thumbnail and each pic should be opened in the separate page when clicked .

View 4 Replies

Allow Single Page To Be Viewed Without Authorization?

Apr 4, 2011

I have a site, developed by an outside company, which requires logon for all pages.

We'd like to add a single page to the site that DOESN'T require the user to be logged in...so they can click the link on the logon page to view "T&C's" type info.

Is this possible?

(ASP.Net 4.0 on IIS)

View 3 Replies

Text Is Crashing When Viewed On A Mac Using Firefox And Safari?

Jul 5, 2010

The text on my website is skewed and different areas are running together when viewing my site on a Mac using either Firefox or Safari. Is there anything I can do about this?

View 1 Replies

C# - Bold Text If User Has Not Viewed Post?

Feb 28, 2011

I have a home page for logged in users which lists titles to various posts that have been submitted. The question I have, is how do I make the title for each post bold if the user has not viewed it?

I have come up with the idea of creating a new db table and storing the userid and postid when the user clicks the link, but haven't come up with a way to translate that into bold/unbold links on the homepage.

View 2 Replies

Saving Text In The Current Page Being Viewed

Jul 7, 2010

Is it possible in VB.NET to change defaults settings on a page? For example I have..

Label1.Text = "Hello World!"

This is my code on the page load, now I want to give the user the ability to change that to whatever they want after clicking a button. So someone types "Hello!" and presses the button, how can I make it save the file with "Hello!" instead of "Hello World!" so that everyone else who comes after that user will see "Hello!" and not "Hello World!"? Basically I need to know if it is possible to edit the page using that same page.

View 5 Replies

Httphandler - Track # Of Page Viewed In A Session?

Nov 22, 2010

I am currently working on a project where I want to implement a bit of logic for each .aspx viewed.My idea was to use an httphandler that will target *.aspx, and in the handler, I would do my bit of logic, such as printing out: This is the xth page you have visited in this session.I am curious if there are any problems with my idea or is there a more proper solution I am not aware of.Though I have tried implementing my solution, I run into an infinite loop. After I complete my logic with the handler, I redirect to the same page, but that of course calls the same handler. Is there a way to bypass the handler on the redirect or a specific way to execute the same page without accessing the handler.

View 4 Replies

MVC :: RedirectToAction() Go To View That Was Being Viewed Instead Of Home Page?

Oct 7, 2010

I am using some Html.ActionLinks to change the value of a Session variable. Right now I am RedirectToAction("Index","Home"). This puts the user back at the home page every time they change that value. I would like to return the user to the view they were one when they clicked that link instead of redirecting them back to the home page. How can I do that?

View 5 Replies

Web Forms :: Find Out Who Visited And Viewed Page

May 8, 2012

How Many User Visit A post And Visit A Thread How Can we get?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved