.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Imran Ghani
Sohaib Khalid

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

How to write code for repeater control

Posted By: teja     Posted Date: February 25, 2013    Points:5   Category :C#
I am working on online examination project,for question paper how should i use repeater control,i mean for 30questions how should use 4 radiobuttons options,can any one tell me the code

Author: Amit Mehra             
Posted Date: February 27, 2013     Points: 20   


Its the same way you bind to GridView

for eg

Repeater1.DataSource = ds; //ds is dataSet

But you need to design your repeater control 1st

This article will give you an idea to work with repeater control


Please "Mark As Answer " if this post help you.
Author: teja             
Posted Date: February 28, 2013     Points: 20   

Thanks,it is very use full for me.And can you please tell me how to create question paper in an online examination ,i mean i want to create question paper in database,and each and every question contain 4 Options with radiobuttons(Answers),and when students want to write the exam then he can select the question paper from database using dropdownlist,for this can you please tell me the code.

Author: Shashi Ray             
Posted Date: February 28, 2013     Points: 20   


<asp:Repeater id="rptViewReport" runat="server">

C# Code

DataSet ds=New DataSet();

rptViewReport.DataSource = ds.Table[0];

Shashi Kant Ray

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend