Hi If your its not too much trouble can you help me with my asp.net coding. Basically what Im trying to do is to create a cinema application which allows customers to choose the available list of films. Also each film list should include film title, description,
dates of showing (links) and each link should show the times for the particular date. Once the showing is selected the users should be able to select where they want to sit from the GUI. Results should be displayed (dates,times and selected seats) submit button
added which says "Your details have been submitted to us". Ok a bit of a mouth full the way I would execute this is I want all this is in one page and the GUI to show in a pop up window the results should be displayed and a message saying "your details have
been sent to us thank you." What Ive done so far is made the tables called "listing" with columns "ID, Film Title, Description, Showing Dates" and the table called "times" with columns "ID, times". So far Ive used grid view to allowed the user to select one
row from listings table and in turn the times table would pop up and show the available times for that date by using a simple where clause. However in the listings table how do I just make it show the date only its coming up with the date and time, and in
the times table how do I make it only show the time its again coming up with the date and time. Also I need to hyperlink the 2nd column in the times table to a pop window where my GUI will be displayed. And lastly I have no idea on how to create the seating
GUI that allows the use to select what seats they want to book and then display all the results (dates,times and selected seats) and allow a submit button to show "You details have been submitted." I just need a simple GUI not an impressive one. Im working
in asp.net C# Any Help?
Spiderd, just so you have the right expectation here, these forums are not for asking for complete code or homework solutions. We can help you understand some concepts you may be stuck on but inevitably, you need to be writing that code or purchase an off
the shelf solution that is customizable.
Thank you for the reply I understand im only asking help :) so far what Ive done is made the two gridveiws and have the 2nd gridview show by clicking on the select option from the first gridview, ive also finally able to make the 2nd colum entires of the
2nd gridview hyperlinked to another aspc page where I intend to have the GUI, however I know how to create a GUI is there hint or reference you guys have that would help with making a simple seating GUI and then it once sumbit show a confirmation message.
OKi so far im ablt connect to a database with two tables and my users can select the film from first table and the 2nd table shows the times available Ive also go the 2nd colum of my table hyperlinked to a aspx page called seats where I want to the GUI.
How do i start by making a GUI that you can select the seats and they turn a differnt colour. Heres the code
You can use the rect element to draw the seats. To make the seat selection, you will have to call a javascript event on click. Google/Bing and you will find lots of tutorials.
Personally speaking, how I would handle this kind of project is below:
If the seat arrangement is static (Of course it will be unless they rebuild the cinema!) I will use an image with the seat arrangement and place buttons on each seat location. Then I can easily find what's the seat selected. But I agree that it would be
a pain if there are many seats in the cinema. In that case, you can dynamically create buttons and place them on each location via a loop. For that, you will have to have some logic to decide X, Y locations of the buttons on the image. It won't be hard if
you do it this way. Set the image as the background image of a asp:Panel. Then add buttons to the asp:Panel incrementing X and Y location as required. You can set the button position by setting the margins. Like below
Button b1 = new Button();
b1.Style.Add("margin-left", "10px");
b1.Style.Add("margin-top", "10px");
The described method Ruchira has given is exactly how I would do it. It's a common practice similar to using image maps, each region has a response code that says sector 1-b, almost like a map if you will, you have numeric and alphabetic coordinates which
interpret into a XY location on the grid.
Mark as answer posts that helped you.
Marked as answer by Chen Yu - MSFT on Jan 17, 2013 02:14 AM
spiderd
0 Points
3 Posts
Help with asp.net cinema application
Jan 09, 2013 05:16 PM|LINK
Hi If your its not too much trouble can you help me with my asp.net coding. Basically what Im trying to do is to create a cinema application which allows customers to choose the available list of films. Also each film list should include film title, description, dates of showing (links) and each link should show the times for the particular date. Once the showing is selected the users should be able to select where they want to sit from the GUI. Results should be displayed (dates,times and selected seats) submit button added which says "Your details have been submitted to us". Ok a bit of a mouth full the way I would execute this is I want all this is in one page and the GUI to show in a pop up window the results should be displayed and a message saying "your details have been sent to us thank you." What Ive done so far is made the tables called "listing" with columns "ID, Film Title, Description, Showing Dates" and the table called "times" with columns "ID, times". So far Ive used grid view to allowed the user to select one row from listings table and in turn the times table would pop up and show the available times for that date by using a simple where clause. However in the listings table how do I just make it show the date only its coming up with the date and time, and in the times table how do I make it only show the time its again coming up with the date and time. Also I need to hyperlink the 2nd column in the times table to a pop window where my GUI will be displayed. And lastly I have no idea on how to create the seating GUI that allows the use to select what seats they want to book and then display all the results (dates,times and selected seats) and allow a submit button to show "You details have been submitted." I just need a simple GUI not an impressive one. Im working in asp.net C# Any Help?
bbcompent1
All-Star
33097 Points
8529 Posts
Moderator
Re: Help with asp.net cinema application
Jan 09, 2013 08:26 PM|LINK
Spiderd, just so you have the right expectation here, these forums are not for asking for complete code or homework solutions. We can help you understand some concepts you may be stuck on but inevitably, you need to be writing that code or purchase an off the shelf solution that is customizable.
ManikandanUl...
Participant
850 Points
253 Posts
Re: Help with asp.net cinema application
Jan 10, 2013 06:13 AM|LINK
refer some ticket booking site and u can get idea how to do the things....
in the single page u can do it without popup window ...using ajaxcontrols and jquery...
Click "…Mark As Answer" if my reply helpful....
spiderd
0 Points
3 Posts
Re: Help with asp.net cinema application
Jan 10, 2013 08:45 AM|LINK
Thank you for the reply I understand im only asking help :) so far what Ive done is made the two gridveiws and have the 2nd gridview show by clicking on the select option from the first gridview, ive also finally able to make the 2nd colum entires of the 2nd gridview hyperlinked to another aspc page where I intend to have the GUI, however I know how to create a GUI is there hint or reference you guys have that would help with making a simple seating GUI and then it once sumbit show a confirmation message.
Thanks
bbcompent1
All-Star
33097 Points
8529 Posts
Moderator
Re: Help with asp.net cinema application
Jan 10, 2013 03:16 PM|LINK
Ok, I would suggest that you post all the code you have so far and then one of us might be able to help. It's hard trying to fly blind :)
spiderd
0 Points
3 Posts
Re: Help with asp.net cinema application
Jan 10, 2013 03:34 PM|LINK
OKi so far im ablt connect to a database with two tables and my users can select the film from first table and the 2nd table shows the times available Ive also go the 2nd colum of my table hyperlinked to a aspx page called seats where I want to the GUI. How do i start by making a GUI that you can select the seats and they turn a differnt colour. Heres the code
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile="films.aspx.cs" Inherits="_Default" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<h2>
Welcome to FILms Listing!!!!!!
</h2>
<p>
Bellow are the listing for the films currently availble to watch!!!
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataKeyNames="ID" DataSourceID="SqlDataSource1"
EmptyDataText="There are no data records to display.">
<Columns>
<asp:CommandField ShowSelectButton="True" />
<asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False"
ReadOnly="True" SortExpression="ID" />
<asp:BoundField DataField="Film Title" HeaderText="Film Title"
SortExpression="Film Title" />
<asp:BoundField DataField="Description" HeaderText="Description"
SortExpression="Description" />
<asp:BoundField DataField="Show Dates" HeaderText="Show Dates"
SortExpression="Show Dates" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
SelectCommand="SELECT * FROM [listings]"></asp:SqlDataSource>
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False"
DataKeyNames="ID" DataSourceID="SqlDataSource2"
EmptyDataText="There are no data records to display.">
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False"
ReadOnly="True" SortExpression="ID" />
<asp:HyperLinkField DataTextField="Showing Dates" HeaderText="Showing Dates"
NavigateUrl="~/seats.aspx" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
SelectCommand="SELECT * FROM [times] WHERE ([ID] = @ID)">
<SelectParameters>
<asp:ControlParameter ControlID="GridView1" Name="ID"
PropertyName="SelectedValue" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
</p>
<p>
</p>
<p>
You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&clcid=0x409"
title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
</p>
</asp:Content>
Ruchira
All-Star
43065 Points
7044 Posts
MVP
Re: Help with asp.net cinema application
Jan 13, 2013 06:33 AM|LINK
Hello,
You could think about using HTML5 SVG to create the GUI.
http://www.tutorialspoint.com/html5/html5_svg.htm
http://www.w3schools.com/html/html5_svg.asp
You can use the rect element to draw the seats. To make the seat selection, you will have to call a javascript event on click. Google/Bing and you will find lots of tutorials.
Personally speaking, how I would handle this kind of project is below:
If the seat arrangement is static (Of course it will be unless they rebuild the cinema!) I will use an image with the seat arrangement and place buttons on each seat location. Then I can easily find what's the seat selected. But I agree that it would be a pain if there are many seats in the cinema. In that case, you can dynamically create buttons and place them on each location via a loop. For that, you will have to have some logic to decide X, Y locations of the buttons on the image. It won't be hard if you do it this way. Set the image as the background image of a asp:Panel. Then add buttons to the asp:Panel incrementing X and Y location as required. You can set the button position by setting the margins. Like below
Button b1 = new Button(); b1.Style.Add("margin-left", "10px"); b1.Style.Add("margin-top", "10px");
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.bbcompent1
All-Star
33097 Points
8529 Posts
Moderator
Re: Help with asp.net cinema application
Jan 14, 2013 11:45 AM|LINK
The described method Ruchira has given is exactly how I would do it. It's a common practice similar to using image maps, each region has a response code that says sector 1-b, almost like a map if you will, you have numeric and alphabetic coordinates which interpret into a XY location on the grid.