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 code
1. Booking.aspx file
<asp:Repeater ID="SeatLayout" runat="server">
<HeaderTemplate><table class="seatList"><tr></HeaderTemplate>
<ItemTemplate>
<td>
<input type="image"
src="../Images/available_seat_img.png" ><%# Eval("NumberSeat")%></input>
</td>
</ItemTemplate>
<FooterTemplate></tr></table></FooterTemplate>
</asp:Repeater>
2. Databinding in codebehind file.
SeatLayout.DataSource = _seatBUS.GetAllSeatByBusRouter(_listBus);
SeatLayout.DataBind();
3. Data source involves “Seat” table which has columns like
SeatID
NumberSeat
Status
ListBusId
How about this:
smaller images of the various seats in the bus.
in their respective locations using CSS absolute positioning.
datasource.
I’m not sure what your bus image looks like, but you may even be able to use divs instead of seat images, which would lighten the server load and allow you to simply change the background color of the appropriate div ID instead of changing the image sources.
These tutorials should help you get started: