Krys_Wilson
asked on
Radio button rating system
Hello all!
I am newly getting into creating ASP pages. I need to create a very simple data entry form so that the user can rate several items. What I want to have is the item in question on the left hand side, and then on the right hand side a control that has 1-10 layed out like this.
Item 1 - 1 2 3 4 5 6 7 8 9 10
With a radio button above each number. Only one of the buttons can be checked at a time.
Is there any easy way to go about doing this? Ive tried in Web Matrix but I can't seem to create a radio button with the button on top and the text on the bottom.
Any help is appreciated.
Chris
I am newly getting into creating ASP pages. I need to create a very simple data entry form so that the user can rate several items. What I want to have is the item in question on the left hand side, and then on the right hand side a control that has 1-10 layed out like this.
Item 1 - 1 2 3 4 5 6 7 8 9 10
With a radio button above each number. Only one of the buttons can be checked at a time.
Is there any easy way to go about doing this? Ive tried in Web Matrix but I can't seem to create a radio button with the button on top and the text on the bottom.
Any help is appreciated.
Chris
I'd make a UserControl that would do this if I were you. I'm imagining that you are going to reuse this...
I would probably suggest what raterus said too.
But if you are not sure on how to do that you can do it very simply by adding a radiobutonlist and adding ten items giving each one a value 0-9 and text being a space. Then create 10 labels and number them 0-9 and position them directly above the radio buttons. You can then add an event for SelectedIndexChanged.
Hope this helps.
But if you are not sure on how to do that you can do it very simply by adding a radiobutonlist and adding ten items giving each one a value 0-9 and text being a space. Then create 10 labels and number them 0-9 and position them directly above the radio buttons. You can then add an event for SelectedIndexChanged.
Hope this helps.
The only problem I see with that solution is that the radiobuttonlist is going to render in it's own table, so even if you created some labels below it, there is no html guarantee that they will line up correctly. Another possibility which would work great if you could figure out how is to just use the radiobuttonlist, but override the render event and separate the text from the button like you want it. Not easy though..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ive got to leave work early, I will defiantely check over these solutions and let you guys know.
Thanks for the help!
Chris
Thanks for the help!
Chris
ASKER
Thanks everyone for responding and for waiting over the weekend! I appreciate all the posts and I went with Boulder Bum's solution.
Thanks again!
Chris
Thanks again!
Chris