using javascript to create seat chart
-
i'm new to asp.net...i don know all its technicalities.....i want to create a seat chart of some auditorium using javascript and enable and disable some of its seats....also allow user to select some of the seats without page reload(only the color of those seats may get changed....and i may be able to collect their seat numbers) if anyone can help me with this or can tell me some other way to create such a user interactive seat chart...???
-
i'm new to asp.net...i don know all its technicalities.....i want to create a seat chart of some auditorium using javascript and enable and disable some of its seats....also allow user to select some of the seats without page reload(only the color of those seats may get changed....and i may be able to collect their seat numbers) if anyone can help me with this or can tell me some other way to create such a user interactive seat chart...???
-
Its better to use update panel other than Java script for seat chart
LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.
-
hi....if you can please elaborate how can i use the update panel for the seat chart of a cinema hall as i'm not through with all the technicalities of asp.net....as i'm still studying it.
modified on Wednesday, March 31, 2010 12:27 PM
First how You are trying to display the number of seats. are you trying to use the buttons or any control. I suggest you the update panel because it will not refresh the whole page .
LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.
-
First how You are trying to display the number of seats. are you trying to use the buttons or any control. I suggest you the update panel because it will not refresh the whole page .
LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.
hi all.... i'm using html input button for this purpose....but i'm unable to retrieve the values in .cs file....what i want is to display arrangement of around 100 seats in a theatre...and would like user to select some seats whose color will change on clicking without reloading the page.....and in .cs file i may be able to retrieve the seat numbers...??? same seat chart as you would find one while booking tickets for a movie online....they ask you select seats of your choice....i wanna do the same thing....can anyone help me???
-
hi all.... i'm using html input button for this purpose....but i'm unable to retrieve the values in .cs file....what i want is to display arrangement of around 100 seats in a theatre...and would like user to select some seats whose color will change on clicking without reloading the page.....and in .cs file i may be able to retrieve the seat numbers...??? same seat chart as you would find one while booking tickets for a movie online....they ask you select seats of your choice....i wanna do the same thing....can anyone help me???
hi sashidhar..... i tried to use the update panel.....i took an update panel.....and 5 buttons....took a session variable and incremented it on click event of each button.....it all worked but the problem now is if i refresh the page the value of session variable is not refreshed....counting starts from the last where the page was refreshed....i'm providing you the code....Have a look....!!! The default.aspx File: <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <br /> <asp:Button ID="Button6" runat="server" onclick="Button6_Click" Text="cancel" /> <br /> <br /> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <br /> <br /> <br /> <asp:Label ID="Label1" runat="server" Text="Panel Created"></asp:Label> <br /> <br /> <br /> <asp:Button ID="Button1" runat="server" BackColor="Aqua" onclick="Button1_Click" Text="Button" /> <br /> <br /> <asp:Button ID="Button2" runat="server" BackColor="Aqua" onclick="Button2_Click" Text="Button" /> <br /> <br /> <asp:Button ID="Button3" runat="server" BackColor="Aqua" onclick="Button3_Click" Text="Button" /> <br /> <br /> <asp:Button ID="Button4" runat="server" BackColor="Aqua" onclick="Button4_Click" Text="Button" /> <br /> <br /> <asp:Button ID="Button5" runat="server" BackColor="Aqua" onclick="Button5_Click" Text="Button" /> </ContentTemplate> </asp:UpdatePanel> </div> </form> </body> now the Default.aspx.cs File: The code was given on click event of all buttons taken in update panel: int i = Convert.ToInt32(Session["i"]); i++; Session["i"] = i.ToString(); Button3.BackColor = System.Drawing.Color.Red; Label1.Text = "Refreshed at " + DateTime.Now.ToStrin
-
hi sashidhar..... i tried to use the update panel.....i took an update panel.....and 5 buttons....took a session variable and incremented it on click event of each button.....it all worked but the problem now is if i refresh the page the value of session variable is not refreshed....counting starts from the last where the page was refreshed....i'm providing you the code....Have a look....!!! The default.aspx File: <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <br /> <asp:Button ID="Button6" runat="server" onclick="Button6_Click" Text="cancel" /> <br /> <br /> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <br /> <br /> <br /> <asp:Label ID="Label1" runat="server" Text="Panel Created"></asp:Label> <br /> <br /> <br /> <asp:Button ID="Button1" runat="server" BackColor="Aqua" onclick="Button1_Click" Text="Button" /> <br /> <br /> <asp:Button ID="Button2" runat="server" BackColor="Aqua" onclick="Button2_Click" Text="Button" /> <br /> <br /> <asp:Button ID="Button3" runat="server" BackColor="Aqua" onclick="Button3_Click" Text="Button" /> <br /> <br /> <asp:Button ID="Button4" runat="server" BackColor="Aqua" onclick="Button4_Click" Text="Button" /> <br /> <br /> <asp:Button ID="Button5" runat="server" BackColor="Aqua" onclick="Button5_Click" Text="Button" /> </ContentTemplate> </asp:UpdatePanel> </div> </form> </body> now the Default.aspx.cs File: The code was given on click event of all buttons taken in update panel: int i = Convert.ToInt32(Session["i"]); i++; Session["i"] = i.ToString(); Button3.BackColor = System.Drawing.Color.Red; Label1.Text = "Refreshed at " + DateTime.Now.ToStrin