Unanswered Asp.net custome control (extend reperater)

  • Tuesday, July 31, 2012 10:51 AM
     
     
     

    Hi,

    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.

    Sanjiv

All Replies

  • 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.

    http://forums.asp.net/t/1252027.aspx

    regards

    joon

  • Tuesday, July 31, 2012 11:32 AM
     
     

    About controls available to your requirement, i recommend you read about Wizards. Check here and here.  Wizards, already does this logic of 5 question, next and more 5 questions.

    @joon84 
    He really doesnt need to use datagrid for that, wizards control, are specify to that kind of logic.


    Web Developer


  • Wednesday, August 01, 2012 2:37 AM
     
     

    Hi Sanjiv K Singh,

      Welcome to MSDN Forum Support.

      You'll need to post it in the dedicated ASP.Net Forum http://forums.asp.net for more efficient responses, where you can contact ASP.NET experts.

      Sincerely,

      Jason Wang


    Jason Wang [MSFT]
    MSDN Community Support | Feedback to us

  • Friday, August 03, 2012 12:41 PM
     
     

    Hi,

    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

    Question Control