Tuesday, July 31, 2012 10:51 AM
I have to host a series of question on our corporate SharePoint server. The DB table contains some set of predefined questions and Answers (single select radio button). Please help me to design this. I am planning to create ASP.Net server control (to extend repeater control) in asp.net which will receive list of questions and Answers via WCF service and will display the 5 question at a time with "Next" button on the footer of the control. When user clicks on "NExt" button the repeater control will display next 5 question and so on. WCF internally uses ADO.NEt Entity framework to connect to database and Linq will be used to query the database. Anyone please let me know if this is the right approach or let me know if any any exisitng component is available similar to my requirement.
Thanks in Adv.
- Moved by Jason Dot WangMicrosoft Contingent Staff Wednesday, August 01, 2012 2:37 AM This thread is about ASP.NET (From:Visual C# General)
Tuesday, July 31, 2012 11:31 AM
you can have a datagrid in the custom control, with paging enabled for 5 rows or so. You can bind the datagrid with the records from SQL with some uqinue identity keys for the paging. Else you can have panel with 5 radio buttons, which you need to bind with database. You can store all the questions/ answers at one go from databse in dataset(or dataview), which you can re use based on paging.
Tuesday, July 31, 2012 11:32 AM
- Edited by NorkkMicrosoft Community Contributor Tuesday, July 31, 2012 11:34 AM
Wednesday, August 01, 2012 2:37 AM
Friday, August 03, 2012 12:41 PM
I think i have to create a custome control because there is lots of logic inside it. I have to create the below shown (as image) control eighter Custome or user control. I prefer to create custome control but how can i attach an onclick event to the buton (e.g. save & continue) when it is created programetically. or how can i track the onclick on radio button? anyone please advise