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 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 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 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 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?
Two separate questions, but sufficiently intertwined that I'm going to try the two together....
Firstly - User Controls and Behaviours
So - first question, is there a better way to do that? For example, should I always be rendering a SPAN as an element to surround the control? Not sure what that would do to the robustness of the rendering. What is the right way to attach a behaviour to a User Control.
Secondly - Accessing those same Behaviours later
I guess this is probably because the behaviours are not attached to the User Control itself, but to a GUI element within it. Hence, I suspect that the answer to the second question lies within the answer to the first.
2- i have Ajax Control ToolKit HTML Editor OutSide My UpdatePanel and its not inside any control.
my problem when make HTMLedior (visible=false ) onpage event, MyupdatePanel Render Control Much Fast, but when i Make it visible its slow my application althougth this htmleditor not included in any update panel and its not refreshed.