Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. using javascript to create seat chart

using javascript to create seat chart

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptasp-nethelpquestion
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    ships_agr
    wrote on last edited by
    #1

    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...???

    S 1 Reply Last reply
    0
    • S ships_agr

      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...???

      S Offline
      S Offline
      sashidhar
      wrote on last edited by
      #2

      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.

      S 1 Reply Last reply
      0
      • S sashidhar

        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.

        S Offline
        S Offline
        ships_agr
        wrote on last edited by
        #3

        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

        S 1 Reply Last reply
        0
        • S ships_agr

          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

          S Offline
          S Offline
          sashidhar
          wrote on last edited by
          #4

          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.

          S 1 Reply Last reply
          0
          • S sashidhar

            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.

            S Offline
            S Offline
            ships_agr
            wrote on last edited by
            #5

            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???

            S 1 Reply Last reply
            0
            • S ships_agr

              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???

              S Offline
              S Offline
              ships_agr
              wrote on last edited by
              #6

              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

              S 1 Reply Last reply
              0
              • S ships_agr

                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

                S Offline
                S Offline
                ships_agr
                wrote on last edited by
                #7

                please tell me how can i refresh the value of session variable on page refresh

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups