PDA

Click to See Complete Forum and Search --> : ASP and Forms??


gilly
Sep 19th, 2000, 04:56 AM
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.

monte96
Sep 19th, 2000, 12:31 PM
Yes you can have multiple forms (as many as you'd like). I don't believe you can nest them though.

HarryW
Sep 19th, 2000, 07:04 PM
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.

monte96
Sep 19th, 2000, 08:18 PM
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...

HarryW
Sep 19th, 2000, 08:32 PM
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.

monte96
Sep 20th, 2000, 12:08 AM
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]