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


Top 5 Contributors of the Month
david stephan

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

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

Hi,

Its the same way you bind to GridView

for eg

Repeater1.DataSource = ds; //ds is dataSet
Repeater1.DataBind();

But you need to design your repeater control 1st

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

http://www.dotnetspark.com/kb/4502-repeater-control-asp-net.aspx

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

Hi,
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   

HTML CODE

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

C# Code

DataSet ds=New DataSet();

rptViewReport.DataSource = ds.Table[0];
rptViewReport.DataBind();




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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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