Rating An Image In Gridview?

Apr 30, 2010

I 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 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

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

AJAX :: Find The Rating Inside A Gridview On Submit Button?

Jun 18, 2010

I have 5 questions to rate a product. These questions are in the database and I disply these questions to the customer in a GRIDVIEw. In order to make the rating easy, I give a tool like this- This tools is part of GridView in a TEMPLATE Field. A set of 5 stars will be available against each question. The user can rate each question by selecting the stars. Now, when the user clicks on the SUBMIT button, I want to receive the 'CURRENT RATING'. At present I am giving- Rating1.CurrentRating But, this doesn't give me any value because the rating tool is inside GRIDVIEW1. So, what changes should I make in Rating1.CurrentRating to receive the current rating value.

i am using this way
[Code]....

i am not able to get the selected rating value

on button submit i am using

AjaxControlToolkit.Rating rating1=(AjaxControlToolkit.Rating)row.FindControl("Rating1");

int rating =
Convert.ToInt32(rating1.CurrentRating);

It give value of first row but did not give me value of second row.

View 1 Replies

VS 2008 Image In GridView / Display Images In The Gridview From The Image Folder

Jul 25, 2010

I have a folder named img containing some images:

I want to display images in the Gridview from the image folder in this way:

But without saving the image location in the Database (i.e;i want to do this using the System.IO)

I can fetch the names of all the images present in the "img" folder but my problem is i cant set the src of the <img> tag properly which would display the image here is what i did:

[code]....

View 6 Replies

Data Controls :: Dynamically Set Image URL At Runtime For Image Control Inside GridView

Jul 31, 2013

How can I make image control through C# coding in gridview column?? and then display image in it.

View 1 Replies

Data Controls :: Display Default Image (NotFound) When Image Does Not Exist In GridView?

Aug 30, 2012

i have gridview in my page

<asp:TemplateField ItemStyle-Width = "25px" HeaderText = "" ItemStyle-Height="18px" HeaderStyle-Height="18px" ItemStyle-HorizontalAlign="left">
<ItemTemplate>
<asp:Label ID="lblType" runat="server" Text='<%# Eval("price") %>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>

i want if there wasn't any data in database, I want to display not found message

View 1 Replies

Forms Data Controls :: Change The Image Url Of An Image Button In Gridview

Jan 7, 2010

I am trying to change the image url of an image button in my gridview. I cannot seem to be able to do this in the code behind. Is there a way I can do this through the image buttons controls?

View 5 Replies

Web Forms :: Show Large Image Popup Image On Gridview Row Mouseover

Jun 19, 2012

[URL].... I got correct code .. but image is not stable on mouse over.... little bit flying...

and on mouse out still previous image will display.....

Requirement:

I have grid with some product details.. like product id ,price,description. on mouse over of each row. should display a image of particular product thumb nail..

View 1 Replies

Data Controls :: Display Alternate Image If Image Is Not Present In GridView

Mar 15, 2013

How can i but alternate Image if No image retrieve  in image Control  ? 

View 1 Replies

Data Controls :: Display GridView Selected Row Image In Image Control

Dec 3, 2013

My file path in which I have stored image will be like this "C:Documents and SettingssureshDesktopRegIR_NEWRegIRinDebug....Images8-Q-IMG.jpg".

This file path will be diaplayed in Gridview and I have made "Auto Generate Select Button - True" in Gridview.

Is it possible to get the image in image control by using this file path on the click of "SELECT" option in gridview.

My running this application on a remote server.

View 1 Replies

Data Controls :: Display Image In Image Control When LinkButton Inside GridView Is Clicked?

Aug 18, 2015

i have added a hyperlink in the gridview and i am displaying the image names in the grid as hyperlinks

when i click on the hyperlink in the grid, the related image has to be displayed in the same page but in another div which is next to gridview

but for me ,image is displaying in another page

View 1 Replies

Data Controls :: Display Image In GridView With Path In Database With Image Enlarge Option?

Jan 12, 2013

<asp:ImageField DataImageUrlField="photo" > <ItemStyle Width="50px" Height ="50px"
HorizontalAlign="Center" VerticalAlign="Middle" ></ItemStyle>
</asp:ImageField>

i need to display image from database in gridview.  i have the above html and a select query executed from code behind which displays the image.

i am storing the image path in the database table and image in a folder.

Queries related to above

1. image size not able to set

2. the gridview image column will display image if the column data is not blank. but if its blank i have 2 default images  male image and female image

so if the field is blank i need to display one of the default images depending on the gender selected
 
3. if the image is clicked it should show enlarged image as popup 

View 1 Replies

Forms Data Controls :: Display Default Image When Image (file) Not Found GridView - ImageField

Mar 26, 2010

I have a page which displays details and a pictures of employees. The details are stored in a SQL database and the images are on the server. How can I set a default Image to display (e.g. an Image saying "Awaiting Image") if an employee picture is missing?

I can't use NullImageUrl as the Images are not stored in the database. I can't use the solution found on [URL] as an ImageField does not accept an ID attribute.

[Code]....

View 7 Replies

How To Restrict User To Do Rating Only Once

Jan 15, 2011

How to restrict user to do rating only once..i m using AjaxControlToolkit Rating Control i VB.NET !

View 1 Replies

.net Forums Rating System ?

Dec 3, 2010

i 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 Replies

Provide The Rating Logic?

Apr 16, 2010

i want the logic for rating.

View 1 Replies

Create A Rating Star In Vb.net (VB)?

Jan 10, 2011

i 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 Replies

How To Create A Rating Control In Vs2008

Jan 16, 2010

how do i create a rating control in asp.net in vs2008

View 4 Replies

AJAX :: Star Rating With Decimals?

Aug 30, 2010

s 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?

View 2 Replies

AJAX :: Rating Control Not Available In Code Behind?

May 4, 2010

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]....

View 2 Replies

C# Sorting Algorithm For Product With Rating?

Dec 21, 2010

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.

View 3 Replies







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