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 have Gridview populated with few rows , sometimes in few pages set suppose 12 rows in 3 pages as page size is set to 5 per page. I want the footer to display something like this
while displayin page 1 : displaying page 1 of 3 - items shown 0 to 5 of 12 while displayin page 2 : displaying page 2 of 3 - items shown 6 to 10 of 12 while displayin page 3 : displaying page 3 of 3 - items shown 11 to 12 of 12
I have a gridview control sitting in a jQuery Accordian. The data in the grid diplays fine, however in IE 6 the page numbers do not display when the pane of the accordian is first opened. If you open another pane and then re-open the pane containing the grid view the number appear. There is also no issue with IE7 or later or FF.
With reference to the following thread: URL....I have problem applying the same concept to gridview EditItemTemplate. Is there a way i can add comma to large numbers and display it in currency format like exemple below:
Textbox3=Textbox1 * Textbox2
Textbox3= 1,000.00
Textbox3 should happen OnTextChanged and the above controls are in Gridview edit mode.
I have a gridview, I am binding the gridview with a datatable and in the gridView, my autogenerateColumn is set to true since I am generating the columns dynamically coming from database. I am also doing doing showFooter =true. There are values in the rows of these dynamically generated columns. I need to calculate the average of each of these columns and display it in the footer. so for e.g, I have
A B C 10 11 12 13 14 15 16 12 11 -- -- -- 13 12.3 12.6
I am having some issues with the performance. I am binding a Gridview with around 200 records and it is taking a long time. At one time I only display 10 records on the page, but I bind all the 200 records.
Generally what is the number of records that should be bound to a gridview ?
I have created a student webpage with many tables like student info,test1 marks,test 2 marks and so on now i have to generate a report for each and every student with their details and average marks in each subject
I have the following issue where I cannot seem to display a negative number and the result seems to stay on zero.
The code is as follows:
[code]...
In my code iNumber1 = 108 and iNumber2=27 however when the result is divided again by 108 the answer seems to stay on 108. I tried using doubles but with no luck.
The database has been designed for a tradesman web site, i.e. Plumbers, Builders etc. The two main tables are tblCustomer and tblTrader which will stored data from two frontend web pages where the customer and trader can enter their personal details. After a customer enters their personal details (i.e. registers through the site) they will then be directed to a child page where they can progress to entering a specific job attached to a specific trade (i.e. Plumber) and trade type (i.e. Bathroom Installation), once a customer job has been entered I want these details to be emailed to all the trader_email addresses from tblTrader, from this email alert the traders will then enter the system and offer quotes to the customer through tblTraderQuote where the customer will then accept the best quote for them.
What I also want to implement is some sort of rating option that will allow the customer to rate their trader, either something like ebay's feedback or just a simple 1-5 rating option? How can I implement this into my database design or is this something that should be performed within the programming layer?
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 form have label(enter)against it enter text in textbox then two radio buttons(startswith) other (contains) and button(search) i want if i choice first radiobutton sqlquery pass and retireve data from db table start with any letter and if choice is second radio button query pas and data from db retireve contains text=""; all this done on search button click
I have created a donut chart using ASP.NET chart control.The pies/sections are ordered in clockwise direction but I need them to be ordered in anti clockwise direction.I know that I can add the values in reverse order and achieve this but there must be a solution to this.
Also, it starts dividing the donut from 90 degrees to the right but I want it to start right from the top of the donut i.e. 0 degrees.
How can i calculate the sum of two textboxes(Textbox1 and Textbox2) and then add comma with .00 to another textbox(Textbox3). Example say Textbox1 = 2 and Textbox2 = 500
I have a gridview that calculate net balance by taking deposit - withdraw. So when the withdraw is more than the deposit, it will result in a negative value, how do I detect that and replace the minus sign with bracket?
I've used <%# Container.ItemIndex + 1 %> to successfully add line/row numbers inside of a repeater control starting with 1, but I've run into a challenge where I need the line numbers to begin at row 50.
I've a form where I'd like to impede the user from entering any alphabits or special characters. The user can only enter numbers between 0 & 3( both inclusive) no more no less.
How can i achieve this ? I've used RangeValidator. Would this alone be suffice or do we also need to use Expression Validator ?