Provide The Rating Logic?
Apr 16, 2010i want the logic for rating.
View 1 Repliesi want the logic for rating.
View 1 RepliesI want to create Plugins or add ons for my application which provide search logic like google..
in asp.net is there any possibility then give me a answer>>
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 RepliesI 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 ?
Article [URL] .....
Above article show rating only integer part .
How can i show decimal rating on ajax rating control not any labels?
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?
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 RepliesI was wondering if setting a default value for a SelectList is considered to be presentation logic or business logic? For example, if a requirement is that an Employee cannot be saved without a Location, but 99% of the time the location that would be selected is a particular item -- say Atlanta. Because of this, the location SelectList should be defaulted to Atlanta when ever a entry screen for a new employee is displayed. Should I be defaulting the location in the model or in the view-model? One thing I realized is that the unit tests become awkward because in both cases, I'd be forced to test against a location that will always be present in production but I cannot create a unit test with my own test dataunless "Atlanta" was in the set of locations being used in the test.
View 4 RepliesDoes LabelFor look for a template? Is it possible to provide a template for LabelFor?The issue i have is the "for" attribute of label matches a field "id" attribute. In the case of radio or checkbox lists my id's generally take the form of "propertyname_0", "propertyname_1" etc. Simply referencing "propertyname" in the for attribute is not effective.
View 5 RepliesHow to provide security in wcf in different ways(certificates,tokens and more) including transport level and message level?
View 1 RepliesI ve made a webpage in which I am displaying images in a grid.(the logic is that i have stored the path in the database and using EvalPath i m displaying the image.) Now i have also added a Javascript code which generates a lightbox kinda effect. The problem is that I want to take the Id of the image so that when the user tries to RATE any image on the site, a code executes backend that stores the rating. How do I acheive this without a postback.??
View 1 RepliesHow to restrict user to do rating only once..i m using AjaxControlToolkit Rating Control i VB.NET !
View 1 Repliesi need to create a rating mechanism for a website just like the one in here (asp.net forums) but i don't know how it's working and it's a little confusing since i saw someone with 105 posts is rated 35 point while another person with 35 posts has the samerate
View 1 Repliesi want this type of rating star in gridview asp.net (vb) can anybody provide me the vb.net tutorial or code to develop this ?
View 1 RepliesI landed on a job to continue working on exisiting asp.net 3.5 application using Visual Studio 2008. The former .net developer is no longer around and I have to dig into the application code to understand how the app works( workflow, logic, etc...)I have added new development to the existing application and enhanced existing pages. Now, I need to provide Technical documentation for the application so any new developer comes onboard will not struggle enhancing the app or do new development following the same methodology . Q1. What is the best approach to provide technical documentation.I thought of the following
View 1 RepliesI have a silverlight application and I want to provide windows authentication to the application through WCF.
View 1 Replieshave been facing a problem in passing credentials to a web service. I have searched a lot on it and found solution but they didn't work for me coz the scenario with me little different I believe.The situation is like this. I have a 3rd party web service "https://3rdpartyserver/virtualdirectroy/service/service.aspx".So when I try to browse the service in IE it takes me to the login page ("https://3rdpartyserver/virtualdirectroy/Loginpage.aspx"), when I enter usename and password in it and hit Log In button it takes me to the service where all the web methods are listed
View 3 Repliesam developing website in that website no.of users are there every user contain related data, the data should be in xml files ,how to provide authentication every user by using xml files .how to write xml file names in web.config in sql we can use connectionstring
,in xml how we can write them give examples.
in my masterpage I have the following:
<asp:SiteMapDataSource
ID="MenuSiteMap"
runat="server"
ShowStartingNode="False"
SiteMapProvider="SpanishSiteMap"
/>
In My code behind I want to provide the SiteMapProvider instead of having it hard coded from the aspx page. What would the code look like to replace in thie case 'SpanishSiteMap' and have that come from code behind in c#? I thought something like this but i know this is way off. hopefully someone has a one liner code that will give provide some sleep. I've come closer to a working code. this is what i have... but get the error mentioned below.
MasterPage myMasterPage = (MasterPage) this.Master;
// do a find control on myMasterPage and find the siteMapDataSource
SiteMapDataSource mySiteMapDataSource = (SiteMapDataSource)myMasterPage.FindControl("MenuSiteMap");
// now u have the reference to the siteMapDataSource used in the master page how do I set the provider..
mySiteMapDataSource.Provider = "SpanishSiteMap";
Error: Cannot implicitly convert type 'string' to 'System.Web.SiteMapProvider'
Conditions:
The files must be opened outside of the window that the link to them is in. I have tried href, but when I give it an intranet link it only opens correctly if I leave out target="_blank"; if I put that in, the new window that opens doesn't receive the full link if there is a pound sign in the filepath... a direct link to the intranet address ac#c.txt would be fine with me; there is no concern about security, but I can't seem to get that to happen in a new window. It seems like this is happening when I don't create a new window, but I can't utilize the same window to open the links.
in my webpage textbox is there in that text box provide regular expression like Ord1,Ord2,means
first three charcters alphbets,the first alphabet stat with Uppercase letter and fourth numerical value dispalyed,
and remaining no need do display any characters when user enters
how do i create a rating control in asp.net in vs2008
View 4 Repliess there any way i can make the star rating to take half a star?
i have rating out of 5 and it can be any decimal between 1 and 5 (ex. 3.21, 1.75, etc)
I want to mark these numbers with half a star, so is it possible?
also i want the actual number (ex. 3.21, 1.75, etc) to be shown in the tooltip
how to do these 2 things?
I am using a Rating Control in my .ASPX page, but in the Page_Load in my code-behind, for some reason, can't access this control to set some properties of the control. Why is this happening and how can I access it in my code behind? Below is where the rating is set, but when I try to access ratingSystem. , nothing is coming up for me in Intellisense, and if I just type it anyway and compile / build, it gives me errors.
<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
<asp:UpdatePanel ID="UpdatePanel2" UpdateMode="Always" runat="server">
<ContentTemplate>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
[Code]....
I'm trying to get a decent sorting algorithm for my products database. Users can vote for their products with using scores from 0 to 5 (.5 scores are also possible like 2.5). My table structure currently looks like this:
[ProductID] [Title] ... [NumberOfVotes] [TotalPoints] [FinalScore]
Whenever a user votes I'm calculating the finalscore very simple like (TotalPoints / NumberOfVotes) = FinalScore. Then I sort the table on FinalScore and NumberOfVotes.Now while this works it's not excactly fair because a product which has only 1 vote of 5 stars can easily come in top rankings.I admit I'm not very good at statistics or algorithms to get a fair product listing and what I'm looking for is something which is not over the top diffucult but which is more fair then the method I'm using now.