Re: multiple forms on one page



Craig Deelsnyder wrote:
On Mon, 18 Jul 2005 20:22:37 -0500, Pint <pintihar@xxxxxxxxxx> wrote:

I have a simple web user control. I'd like for this form to appear twice on a single aspx page. How do I get around the problem of having more than one <form runat=server> tag?

More background: the user control is a login box. For design reasons I want the box to be available in the header as well as the bottom of the page.

Thanks,
Pint


Don't define the form in your usercontrol; I assume that's what you're doing. Usually you leave form definition to the page itself, for this reason.



Thanks for your reply, but this did not address my question.

I understand that using a single form works. What I am trying to learn is if anyone knows a way to allow for two or more forms on a single aspx page. One use of this would be to allow a login form on every page, even pages that have an entirely different form on them.
It would be nice to put the implementation of the login form in a user control so that it could easily be incorporated into every page. Your solution does not allow for this abstraction.
Thanks,
Pint
.




Relevant Pages

  • Re: multiple forms on one page
    ... on a single aspx page. ... the user control is a login box. ... For design reasons I want the box to be available in the header as well as the bottom of the page. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Forms Authentication without Login Page
    ... the user logs in using your login dialog. ... the authentication cookie. ... the above user control to hide itself or in the pageto hide the control. ... > using RedirectFromLoginPage()? ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Forms auth for directory
    ... to login for. ... User control on each page for logging in. ... I'd like to use Forms auth and sql ... and then forward to the protected directory? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Ability to modify the login
    ... Is it possible to modify the login in SharePoint so that it allows the ... user control over his password in the event that they would like to ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Can I have GET and POST forms on the same page?
    ... Place your member's login in a user control that is placed on the top of ... You an handle the "login" button click in the UserControl. ... suppose your site has a members' log-in form at the top of ...
    (microsoft.public.dotnet.framework.aspnet)