Click here to Skip to main content
16,004,647 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello
i am working on a movie ticket booking site i need to show the seats i am thinking of doing that by using a repeater, the repeater has to show the number of check box that are specified in the aspx.cs page can u pleas help me out with this
Posted

1 solution

ASP.NET
<div>
    <asp:repeater runat="server" id="rptCheckBox" xmlns:asp="#unknown">
    <itemtemplate>
    <input type="checkbox" style="float:left" />
    <div style=" width:100%; clear:both;"></div>
    </itemtemplate>
    </asp:repeater>
</div>



C#
string[] seats = new string[10]; // your seats! , this is your data source ! you can also use database or data table or ...

      rptCheckBox.DataSource = seats;
      rptCheckBox.DataBind();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900