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. [SOLVED] How can i do this?

[SOLVED] How can i do this?

Scheduled Pinned Locked Moved ASP.NET
question
7 Posts 3 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.
  • M Offline
    M Offline
    msqar
    wrote on last edited by
    #1

    Heya, i got a new question, I got my website, where i placed in header the logged in bar, which includes the "Hello, " and bellow PROFILE | LOG OUT. The thing is, that the LOG OUT in order to work, has to be a

    E N 2 Replies Last reply
    0
    • M msqar

      Heya, i got a new question, I got my website, where i placed in header the logged in bar, which includes the "Hello, " and bellow PROFILE | LOG OUT. The thing is, that the LOG OUT in order to work, has to be a

      E Offline
      E Offline
      Expert Coming
      wrote on last edited by
      #2

      You can only have 1 form per page. Put everything in the 1 form.

      The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

      M 1 Reply Last reply
      0
      • E Expert Coming

        You can only have 1 form per page. Put everything in the 1 form.

        The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

        M Offline
        M Offline
        msqar
        wrote on last edited by
        #3

        Yea, but brother told me that, but i got different containers, i.e: like this: header container form LOGGED IN BAR /form /header container body container CONTACT FORM /body container can i do something like this ? header container form LOGGED IN BAR /header container body container CONTACT FORM /form /body container Thanks for replying btw!.

        1 Reply Last reply
        0
        • M msqar

          Heya, i got a new question, I got my website, where i placed in header the logged in bar, which includes the "Hello, " and bellow PROFILE | LOG OUT. The thing is, that the LOG OUT in order to work, has to be a

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          There is no reason to have two separate forms on your page. Use one form and handle the proper events. Such as, handle the login/logout button click event and the submit button click event. What problem are you trying to solve with two forms?


          I know the language. I've read a book. - _Madmatt

          M 1 Reply Last reply
          0
          • N Not Active

            There is no reason to have two separate forms on your page. Use one form and handle the proper events. Such as, handle the login/logout button click event and the submit button click event. What problem are you trying to solve with two forms?


            I know the language. I've read a book. - _Madmatt

            M Offline
            M Offline
            msqar
            wrote on last edited by
            #5

            Hello again, Mark :) My doubt is about the asp:container's i got on each aspx. as i mentioned in the previous reply, i got a header container and a body container. My questions is: Am I able to open a form in the header container and close it in the body container, and afterwards, manage all the events with onclick property -as you said-? Because i got the log out bar in the header, and contact us form in the body. Need a solution in order to place all the events in one single form :D Thanks again!!! Marian.

            N 1 Reply Last reply
            0
            • M msqar

              Hello again, Mark :) My doubt is about the asp:container's i got on each aspx. as i mentioned in the previous reply, i got a header container and a body container. My questions is: Am I able to open a form in the header container and close it in the body container, and afterwards, manage all the events with onclick property -as you said-? Because i got the log out bar in the header, and contact us form in the body. Need a solution in order to place all the events in one single form :D Thanks again!!! Marian.

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              One form and many ContentPlaceHolders is how the default masterpage is constructed when starting an ASP.NET web application project within Visual Studio. Do you understand the concept of masterpages and contentplaceholders?


              I know the language. I've read a book. - _Madmatt

              M 1 Reply Last reply
              0
              • N Not Active

                One form and many ContentPlaceHolders is how the default masterpage is constructed when starting an ASP.NET web application project within Visual Studio. Do you understand the concept of masterpages and contentplaceholders?


                I know the language. I've read a book. - _Madmatt

                M Offline
                M Offline
                msqar
                wrote on last edited by
                #7

                yea, correct me if i'm wrong, the masterpage is the "DEFAULT" page and then i create other pages that "inherits" (i know is not inheritance, but just an example in order to explain what i know) from the masterpage. For example if i have a masterpage with header and footer as master.master with a contentplaceholder in the body. Then i create a login.aspx with master.master as the masterpage and include my independent code inside of the container of login.aspx. When i run the webpage, the masterpage creates the proper HTML. I realised about the forms, when you create a new .aspx file, with the default code. It shows something like this:

                // Here I should add all the ContentPlaceHolder's right?

                And manage all the events from each page without needing a lot of forms. Thanks again :D Marian.

                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