Results 1 to 6 of 6

Thread: ASP and Forms??

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Location
    N.Ireland
    Posts
    651

    Cool

    Can u have two forms on one ASP page?

    I have two separate vb modules called:
    UCAdmin and
    UCYear

    Is it possible to call both these classes from asp? IVE TRIED BUT ONLY GEt errors.
    Gilly

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Yes you can have multiple forms (as many as you'd like). I don't believe you can nest them though.

    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    On the contrary, I've found that sometimes the only way to use multiple submit buttons submitting the same data to different ASP pages is to nest forms.

    I don't know about calling classes to be honest. I've used the standard ADO conection and recordset classes in ASP, that's all.
    Harry.

    "From one thing, know ten thousand things."

  4. #4
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    If they were nested how would the server determine which form the values belonged to. (Like if you had multiples of the same name. I don't see a point in nesting them but if you have them set up like

    <FORM>
    blah blah
    </FORM>
    <FORM>
    blah blah
    </FORM>

    you can have identical elements in the 'blah blah' areas and when you click a submit within one of the forms, only THAT form's data is passed.

    as for the classes, you'd have to be more specific in what your trying to do...
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  5. #5
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Like I said, for submitting the same data from the same form elements. I don't know how it handles duplicates names but I suspect it would throw up an error. I never duplicated any names so I never had to worry about it.
    Harry.

    "From one thing, know ten thousand things."

  6. #6
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    would the nested forms have an action set to different pages? I'm still not seeing the usefullness unless your passing values to another frame.

    (although I think we've probably answered his question :c)

    [Edited by monte96 on 09-20-2000 at 01:12 AM]
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width