why only one server-form in an aspx file?

D

Dan

Hi again,

I tried to create a second server-form in an aspx file, but there can be
only one.
Independantley of it's useful or not, why is it so?

And why can't i create a form directly in vb.net (from the code-behind page)
assuming i first deleted the form tag in the aspx file?

Thanks
Dan
 
T

Tasos Vogiatzoglou

I conjecture that you cannot have 2 server side form controls because
the ASP.NET uses the form arguments to bind data to controls and there
is no direct way to identify what form you are posting (in that case
for example you would have to have 2 viewstates).

What are you trying to achieve?

Regards,
Tasos
 
D

Dan

Thanks, i wanted only to know the reason, that's all.
With classic asp, it was possible to have more than one form for posting,
having each an ID, so why not with asp.net ...
 
J

Juan T. Llibre

Actually, you *can* have more than one web form in an aspx page,
but you don't have that capability out-of-the-box. You need to program it.

This article by Paul Wilson may explain this for you :

http://aspalliance.com/articleViewer.aspx?aId=132&pId=

If you want to have more than one web form in ASP.NET, you can purchase
Paul's component, the WilsonWebForm, or develop a similiar component yourself.
 
D

Dan

Thanks

Juan T. Llibre said:
Actually, you *can* have more than one web form in an aspx page,
but you don't have that capability out-of-the-box. You need to program it.

This article by Paul Wilson may explain this for you :

http://aspalliance.com/articleViewer.aspx?aId=132&pId=

If you want to have more than one web form in ASP.NET, you can purchase
Paul's component, the WilsonWebForm, or develop a similiar component yourself.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top