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?
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.
I have a custom control that renders different controls based on a property value. This all works correctly until i try and add a rating control to the control. When i render both controls in the CreateChildControls the control is rendered properly.
However when i try to add layout by overriding the RenderContents method and rendering controls there, an error is generated Extender controls may not be registered after PreRender.The code shows both methods of creating the controls.
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.
i am trying to bind rating control from my database. example like. Orkut Answer streangth. i have three option Yes, No and cant say and according database value, i want to show stranth for that option.
I have placed a ratngs control like the one shown in the tutorial. When I debug the page, I cannot see the ratings control. However I can hover over where the control is, and it will show the ratings tooltip (e.g. 1, 2, 3, 4 and 5), but no stars.
I have this working except for one thing. After the user has voted I want to replace the submit with "Thank you" text.
In the aspx page I have a label that is not visible, with the text = "NotVoted". This label is not in the listview. In the listview I have a label that is not visible and a button that is. The rating control is called vidRating. In the vidRating_Changed event I have
lblVoteStatus.Text = "Voted" ListView1.DataBind() In the ListView1_ItemDataBound event I have Dim lblVoted As Label = CType(e.Item.FindControl("lblVoted"), Label) Dim btnSubmit As Button = CType(e.Item.FindControl("btnSubmit"), Button) If lblVoteStatus.Text = "Voted" Then btnSubmit.Text = "Thank you" btnSubmit.Visible = False lblVoted.Visible = True End If
When I run this in debug mode, if the user has voted, ListView1.DataBind() is run, lblVoteStatus.text = "Voted", and the code in the IF statement is run. I get no errors, but the page doesn't change. I still see the button and I don't see the label text. If I comment out the if /end if statements, the page opens displaying the label text, not the submit button. So the controls are being found ok. What am I doing wrong? How can I disable or remove the submit button after the user votes?
I am trying to included a rating control in a composite control that renders many different type of controls. I render the controls by overriding the rendercontents so that I can control the layout of the controls. When I try to add the rating control to the output i get a Page cannot be null error. Can someone provide me with the proper way to render a rating control from a composite control and be able to control the layout of the child controls.