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 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
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
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
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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
| |