Public Rating Script Allowing 1 Submission Per Visitor?

Aug 8, 2010

I've written a .NET/jQuery rating script that allows users to rate a particular product.

Everyone that visits the website can rate, but I'd like to only allow 1 rating per visitor.

So far I've considered the following options.

1: Store the users IP address and only allow 1 submission per IP.

this would mean that people on corporate LAN's, Internet cafe's, public Wi-Fi's and such won't be able to vote after someone else has from the same location.

2: After voting, create a cookie in their browser that indicates they've voted.

This isn't a good solution either, since people using Private Browsing will be able to vote as many times as they like, OR a more advanced user will clear their cookies and keep submitting a vote over and over again.

View 3 Replies


Similar Messages:

AJAX :: Rating Control Average Rating And Postback On Same Rating?

Feb 20, 2011

I have a rating control that shows the average rating of a user supplied posting (think of a forum post that others will rate). So if the average rating for that posting is lets say 3 out of 5 all users will see 3 stars. If someone wants to rate the posting, then they could click lets say 4 stars and I save the rating to the database, re-average the current rating and display the result (which may or may not still be 3 at this point). So far so good. The problem comes in when a user wants to agree that it's 3 stars. Since the rating control currently shows 3 stars, choosing 3 again does not cause a postback. In my case even though the value didnt technically change, I need to capture the users choice so I can average it in and save that users rating. I also modify the UI so that I can show each user of the site what he/she choose as a rating.How can i get the control to let me know that a user choose a star rating even if its the same one the control is currently displaying?

View 3 Replies

Web Forms :: Form Email Data Submission By User Submission

Jan 15, 2010

I was able to find examples throughout the internet that more or less accomplished what I needed to be done, but now I have run into some problems. I need to be emailed the form data when the users submits it and then the user needs to be redirected to a thank you page, in this case "thanks.asp". I have been unable to get the form to redirect users to the thanks page, and in my efforts I think I might have messed the email process up as well.

[Code]....

View 14 Replies

C# - Using Some Class Library - Want To Know The Country Of The Visitor And Use That Country Name To Redirect The Visitor To Some Webpage Accordingly

Sep 10, 2010

My code:

protected void Page_Load(object sender, EventArgs e)
{
String userHost = Request.UserHostName
}

This is fetching the IP address alright, but now I want to know the country of the visitor and USE that country name to redirect the visitor to some webpage accordingly.

I came across this library but have no clue how to use it in the project. Actually I do, but I am not sure so I am asking.

http://ipaddressextensions.codeplex.com/

When I download from the above the ZIP folder has a DLL file and an XML file. Now, what do I do with these two? Like include in the project. Then what do I type in the code file?

Something like the following.

if (countryName=="France")
{
response.redirect("www.mysite.fr") [code]....

How do I go about it? Also do I really need to type SO many if blocks for ALL the countries. How do I shorten this code?

View 2 Replies

AJAX :: How To Use Rating Control For Song Rating In A Musical Website

Jan 29, 2011

I am now doing a project mobile musical website. I have used Ajax Toolkit in my last project and so that I know how to install it and work with it...

I have used CalenderExtender, TextboxWatermark, Password Strength, etc. But I am not familiar with the rating control. How does it work ?

View 1 Replies

AJAX :: Implement Half Star Rating Using Rating Control

Aug 18, 2015

Article [URL] .....

Above article show rating only integer part .

How can i show decimal rating on ajax rating control not any labels?

View 1 Replies

Rating Control Current Rating To Double Rounding?

Mar 19, 2010

I am trying to convert 22 rating control currentrating values to a double instead of int

I am also displaying in a label control so it is converted to String here is what I have

[Code]....

My display label displays

Rating is x stars out of 5.0 stars

I also record the results in a decimal 1.1 form

I did Convert.ToDouble(rate1.CurrentRating) + Convert.ToDouble(rate2.CurrentRating) .....

but I get a 7 digit after 0 return, how do i round that to a single point?

View 1 Replies

AJAX :: How To Give Half Rating In Rating Control

Oct 11, 2013

I am using AJAX Rating Control.I want half star rating.For Example,If My AVG Rating Count is 3 Then My Stars Wants to be show 3If My AVG Rating Count is 2.5 Then My Stars Wants to be Show 2 1/2 mark i.e., two & half stars.But,it was not showing then also it is showing 3 stars.

View 1 Replies

Data Submission During Form Submission

Oct 30, 2010

i have a form which has two textboxes and a submit button.on entering data and submitting data gets stored in the database.but if i again refresh the page the same data again gets stored.How should this be prevented?

View 3 Replies

How To Access A Module Or A Public Class With Public Shared Members From Inline Vb Code

Feb 10, 2011

I can access a module from code behind but not from the aspx page in inline VB code <% ... %>.

I know its got to be something simple but I can't seem to find the answer anywhere.

View 1 Replies

Vb.net - Declare A Public Variable And A Public Sub In An Aspx Web Page?

Aug 26, 2010

How do declare a public variable .aspx web page that can be used in all the pages within my web application? And/or create a Public Sub?

View 3 Replies

Public Static Variable Declared In Public Static Class MyGlobals In A 'Code File' Template?

Jan 27, 2011

I have a question about C Sharp ASP.NET:Is there a difference (in code speed, resources) between:public static variable declared in public static class MyGlobals in a 'Code File' template;and the variable declared in a normal 'Class File' template;I use this variable in 2 different Class Files and also in _Default Page codebehind cs file.In fact in my case I need about 20 global variables of type List<string>.

View 9 Replies

Getting Info About The Visitor?

Nov 14, 2010

in PHP, I can know these info for the visitor: IP Address. IP HostName. Natted IP Address. Natted IP HostName. User-Agent (Web Browser, OS version, framework, infopath, etc...) Web REQUEST. Web Referrer. Language. DateTime. How can I know that in asp.net? And what additional info can I know using asp.net? And how can I know if the visitor have special software installed?

View 3 Replies

Web Forms :: What's The Best Way To Track Visitor Ip

Dec 3, 2010

I'm trying to write an application that allows a visitor to use our service for 7 days. After 7 days, they will no longer be able to use it unless they sign up. What's the best way and the most accurate way to track it without collecting their credit card information? I'm trying to use the following code to track visiotr's ip. But I'm not sure if people are able to change their ip address or using a proxy server that will go through.

HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]

View 13 Replies

Understand Whether The Visitor Is Googlebot Or Not ?

Feb 1, 2011

ow to understand whether the visitor is Googlebot or not ? ASP.net 4.0 & C# I mean i want to understand that if the visitor is Googlebot or not.

View 2 Replies

Security :: Set A Visitor As Logged In?

Mar 27, 2011

I created my own register system with my own register form together with the asp.net login control

the user register and the data is sent to my custom table and I used a method that check if the user exists in my table and the asp.net login control display the correct result "if exists or not"

everything appears to work correctly but I cannot access pages that deny anonymous users with the configuration file.

View 3 Replies

Get Visitor IP On Load Balancing Machine?

Mar 25, 2010

We are having two load balancing server. In that we have hosted a asp.net 3.5 application right now we are using request userhostaddress to get visitor ip but it is giving load balancer ip instead of real ip.

View 3 Replies

What Is The Right Way To Count Total Visitor In A Website

Aug 14, 2010

I'm facing with an old problem that it made me confuse very much. So I need your advice to make sure that I've been using the right way. My demand is to count the number of visitor in my website, so I've coded in Global.asax file:

[Code]....

Then, I used variable Application["SiteHitCounter"] and Application[CurrentUsers"] in another C# behind code file to show them on web page.The problem I'm facing is that the website can't show right total visitor number as in my database when I publish it to shared host.

View 3 Replies

Capturing Website Visitor Name (ID) And Location?

Mar 3, 2010

I have an ASP.net/VB.net website, and I currently capture the visitor's IP address with the following code:

IPAddr = Page.Request.ServerVariables("HTTP_X_FORWARDED_FOR").

Does anyone know the corresponding code that can capture (1) the visitor's name (ID) and (2) location?

Note: I am trying to capture the true information from the visitor's computer, not false (proxy) information. As an example, the code:

"Page.Request.ServerVariables("REMOTE_ADDR")" produces a false (proxy) IP address.

View 9 Replies

How To Trace The Website Visitor Count

Feb 28, 2011

I need to implement the website visitor count Usercontrol.

View 3 Replies

Track Visitor History - Second Time

Jun 25, 2010

my project is visitortracking system in this we are tracking all of the visitors now i want to track the visitor history(second time)

View 1 Replies

Calculate The Time The Visitor Has Been On The Website?

Mar 14, 2010

how to calculate the time the visitor has been on the website?

View 3 Replies

Web Forms :: Track IP Address Of Visitor?

Mar 10, 2011

I have a HTML webpage and I want to display the I.P address of last 5 visitors who visited the webpage.

I want to display these five I.P address on the webpage itself.

View 5 Replies

How To Fetch Visitor Name Who Is Online In Website

Feb 1, 2014

I want to display all the user's name who is login to my websites..

So I can see them who is online.

View 1 Replies

Security :: How To Create Unique Login For Each Visitor

Jan 27, 2011

I am creating a site that will host my virtual resume and would like to set it up so the visitor would enter a simple code to advance past the default page. I am not looking to create a unique login for each visitor, I just want to control who sees the information online. I have used the web controls in visual studio express for for creating logins on other sites, which included additional support code like "User.Identity.IsAuthenticated == false" to redirect visitors on other sites but I am looking to see if there is a more simple way of handling this.

View 1 Replies







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