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.
Printable View
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.
Yes you can have multiple forms (as many as you'd like). I don't believe you can nest them though.
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.
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...
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.
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]