Need help in changing layout at run time using Repeater control

BageOpinvania

New Member
I am new to .Net.Currently working on creating a bus layout for a online bus reservation system.is there any solution possible with below code1. Booking.aspx file\[code\] <asp:Repeater ID="SeatLayout" runat="server"> <HeaderTemplate><table class="seatList"><tr></HeaderTemplate> <ItemTemplate> <td> <input type="image" src="http://stackoverflow.com/questions/Images/available_seat_img.png" ><%# Eval("NumberSeat")%></input> </td> </ItemTemplate> <FooterTemplate></tr></table></FooterTemplate> </asp:Repeater>\[/code\]2. Databinding in codebehind file.\[code\]SeatLayout.DataSource = _seatBUS.GetAllSeatByBusRouter(_listBus);SeatLayout.DataBind();\[/code\]3. Data source involves "Seat" table which has columns like\[code\]SeatIDNumberSeatStatusListBusId\[/code\]
 
Back
Top