Multiple Forms

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jonathan Amend

    #1

    Multiple Forms

    I want to make a page that has 2 forms on it but I can't use any
    runat=server controls because there can only be one runat=server form. Is
    there a way of having 2 forms with runat=server controls or do I have to
    resort to normal forms with submit burrons and processing the request
    manually when Page_Load fires?


  • Victor Garcia Aprea [MVP]

    #2
    Re: Multiple Forms

    Hi Jonathan,

    If you really, really, *really* need two server-side forms, then check out
    Paul's[1] site which includes such a control.

    [1] http://www.wilsondotnet.com/

    --
    Victor Garcia Aprea
    Microsoft MVP | ASP.NET
    Looking for insights on ASP.NET? Read my blog:

    To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
    and not by private mail.

    "Jonathan Amend" <cephas_is@hotm ail.com> wrote in message
    news:3f14b5f5$1 _1@aeinews....[color=blue]
    > I want to make a page that has 2 forms on it but I can't use any
    > runat=server controls because there can only be one runat=server form. Is
    > there a way of having 2 forms with runat=server controls or do I have to
    > resort to normal forms with submit burrons and processing the request
    > manually when Page_Load fires?
    >
    >[/color]


    Comment

    • Steve C. Orr, MCSD

      #3
      Re: Multiple Forms

      You cannot have 2 runat=server forms on the same form unless one of them is
      invisible.
      One potential workaround is to use an IFrame.
      Here's more info on IFrames:
      http://msdn.microsoft.com/workshop/a...cts/IFRAME.asp

      --
      I hope this helps,
      Steve C. Orr, MCSD


      "Jonathan Amend" <cephas_is@hotm ail.com> wrote in message
      news:3f14b5f5$1 _1@aeinews....[color=blue]
      > I want to make a page that has 2 forms on it but I can't use any
      > runat=server controls because there can only be one runat=server form. Is
      > there a way of having 2 forms with runat=server controls or do I have to
      > resort to normal forms with submit burrons and processing the request
      > manually when Page_Load fires?
      >
      >[/color]


      Comment

      Working...