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