473,407 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

why only one server-form in an aspx file?

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
May 27 '06 #1
6 1343
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

May 27 '06 #2
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 ...
"Tasos Vogiatzoglou" <tv*****@gmail.com> wrote in message
news:11*********************@38g2000cwa.googlegrou ps.com...
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

May 28 '06 #3
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.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Dan" <sd> wrote in message news:eW**************@TK2MSFTNGP02.phx.gbl...
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 ...
"Tasos Vogiatzoglou" <tv*****@gmail.com> wrote in message
news:11*********************@38g2000cwa.googlegrou ps.com...
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


May 28 '06 #4
Dan
Thanks

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:Ob**************@TK2MSFTNGP03.phx.gbl...
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.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Dan" <sd> wrote in message news:eW**************@TK2MSFTNGP02.phx.gbl...
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 ...
"Tasos Vogiatzoglou" <tv*****@gmail.com> wrote in message
news:11*********************@38g2000cwa.googlegrou ps.com...
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



May 28 '06 #5
You can have multiple server forms in an ASPX, but only one can be visible
at a time.

http://blogs.msdn.com/kaevans/archiv...19/482778.aspx

--
Kirk Allen Evans
Developer Evangelist
Microsoft Corporation
blogs.msdn.com/kaevans

=== This post provided "AS-IS" with no warranties and confers no rights ===
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:Ob**************@TK2MSFTNGP03.phx.gbl...
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.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Dan" <sd> wrote in message news:eW**************@TK2MSFTNGP02.phx.gbl...
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 ...
"Tasos Vogiatzoglou" <tv*****@gmail.com> wrote in message
news:11*********************@38g2000cwa.googlegrou ps.com...
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




May 28 '06 #6
re:
You can have multiple server forms in an ASPX, but only one can be visible at a time.
Kirk, that sort of defeats the purpose, doesn't it ?

As a comment at that site sytates, you can also do it with a Panel.

For *multiple forms visible at all times*, see the article I referenced in my last post:

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


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Kirk Allen Evans" <ki***@online.microsoft.com> wrote in message
news:AC**********************************@microsof t.com... You can have multiple server forms in an ASPX, but only one can be visible at a time.

http://blogs.msdn.com/kaevans/archiv...19/482778.aspx

--
Kirk Allen Evans
Developer Evangelist
Microsoft Corporation
blogs.msdn.com/kaevans

=== This post provided "AS-IS" with no warranties and confers no rights ===
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:Ob**************@TK2MSFTNGP03.phx.gbl...
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.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Dan" <sd> wrote in message news:eW**************@TK2MSFTNGP02.phx.gbl...
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 ...
"Tasos Vogiatzoglou" <tv*****@gmail.com> wrote in message
news:11*********************@38g2000cwa.googlegrou ps.com...
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


May 28 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Philip Trim | last post by:
General Brief: 3 SQL Servers as MS SQL Server 2000 Standard Edition with Service Pack 3 All using FTP for snapshots All Servers are both Publishers and Distributors. Server A has the correct...
9
by: Grim Reaper | last post by:
My work let me put SQL Server 7.0 Enterprise Edition on my laptop. I have never setup a server from the beginning, so I am a little new at creating server groups. Alright, I am trying to create...
0
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
1
by: Peter | last post by:
I've purchased VS.NET 2005 Standard and have tried to install SQL Server 2005 Express, but get the following error in the error log. Please could someone help me.... Microsoft SQL Server 2005...
14
by: Marcus | last post by:
I have a function that simply returns TRUE if it can connect to a particular Sql Server 2005 express, or FALSE if it cannot. I am getting some strange error codes returned when the computer that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.