|
-
Sep 19th, 2000, 04:56 AM
#1
Thread Starter
Fanatic Member
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.
-
Sep 19th, 2000, 12:31 PM
#2
Frenzied Member
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..
-
Sep 19th, 2000, 07:04 PM
#3
Frenzied Member
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."
-
Sep 19th, 2000, 08:18 PM
#4
Frenzied Member
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..
-
Sep 19th, 2000, 08:32 PM
#5
Frenzied Member
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."
-
Sep 20th, 2000, 12:08 AM
#6
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|