473,396 Members | 1,826 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,396 software developers and data experts.

Not So Basic Question.....

ok I am rather new to the .net framework. I come from a J2EE
background. I am not a java snob though =-) I happen to like both
platforms.

At any rate I came accross a simple problem that I was left unsure how
to handle. I need 2 forms on a aspx page. I know that this has been
addressed in length before however it seems to me that with all the
great things in .net there must be a good do this multiform behavior
when you run in to it.

What I ended up doing was puting a standard form in the aspx as well
as the server control form. While this solution worked it was less
then perfect. For one I could not use any of server validation
controls i.e. Regular expression validation. I had to submit the form
to another aspx page just to prcess the form. This is not good. It is
like Microsoft is saying. You can use this great View layer we have to
work with your forms, however if you have more then one form you have
to use old crappy hack job asp.

My question is this. Is there a standard solution to this issue? There
are many cases where you need more then one form on a page, did .NET
just not address this..

Thanks,
Brette
Nov 18 '05 #1
6 1102
In this situation propably I'll just create 2 aspx pages, then let form A
call javascript window.open() to open the form B.
By this style I 'll not only be able to pass data across forms by session,
but also by hidden fields in javascript.

"Bliss" <bg***********@landolakes.com> ???
news:61**************************@posting.google.c om ???...
ok I am rather new to the .net framework. I come from a J2EE
background. I am not a java snob though =-) I happen to like both
platforms.

At any rate I came accross a simple problem that I was left unsure how
to handle. I need 2 forms on a aspx page. I know that this has been
addressed in length before however it seems to me that with all the
great things in .net there must be a good do this multiform behavior
when you run in to it.

What I ended up doing was puting a standard form in the aspx as well
as the server control form. While this solution worked it was less
then perfect. For one I could not use any of server validation
controls i.e. Regular expression validation. I had to submit the form
to another aspx page just to prcess the form. This is not good. It is
like Microsoft is saying. You can use this great View layer we have to
work with your forms, however if you have more then one form you have
to use old crappy hack job asp.

My question is this. Is there a standard solution to this issue? There
are many cases where you need more then one form on a page, did .NET
just not address this..

Thanks,
Brette

Nov 18 '05 #2
ASP.NET doesn't support this natively in version 1.1. I think 2.0 will
support multiform, can't remember for sure.

Paul Wilson sells a control for $50 that allows this:
http://aspalliance.com/articleViewer.aspx?aId=132&pId=

I know this seemed like a big limitation when I made the transition to
ASP.NET, but in practice it hasn't been a problem at all. Why do you
need two forms on a page?

- Jon
http://weblogs.asp.net/jgalloway

Nov 18 '05 #3
Hey Brette:

ASP.NET really does use a 'single form' interface where the page
always posts back to itself. Think about using event handlers in the
code behind to manage the different events.

There are also some thoughts on the issue here:
http://msdn.microsoft.com/msdnmag/is...e/default.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 4 Nov 2004 16:13:20 -0800, bg***********@landolakes.com (Bliss)
wrote:
ok I am rather new to the .net framework. I come from a J2EE
background. I am not a java snob though =-) I happen to like both
platforms.

At any rate I came accross a simple problem that I was left unsure how
to handle. I need 2 forms on a aspx page. I know that this has been
addressed in length before however it seems to me that with all the
great things in .net there must be a good do this multiform behavior
when you run in to it.

What I ended up doing was puting a standard form in the aspx as well
as the server control form. While this solution worked it was less
then perfect. For one I could not use any of server validation
controls i.e. Regular expression validation. I had to submit the form
to another aspx page just to prcess the form. This is not good. It is
like Microsoft is saying. You can use this great View layer we have to
work with your forms, however if you have more then one form you have
to use old crappy hack job asp.

My question is this. Is there a standard solution to this issue? There
are many cases where you need more then one form on a page, did .NET
just not address this..

Thanks,
Brette


Nov 18 '05 #4
Hey Guys thanks for your insight. As to why I need two forms. I have
to handle a challange response request from this page that uses my
LDAP objects. They also want a form that you can put an email adress
and sent the page to anyone who is valid in the LDAP. The problem
being that the validation needs to be seperate between these froms.
Alas I dont think it is possible to seperate the validaion if all the
elements are in one web form. Anyway Thanks for all you response. I
still love .NET real good stuff. I give microsoft an B+....=-)
Nov 18 '05 #5
In fact I once also tried to implement 2 forms on one page because I want to
display the upload progress on the same page. But since http browser cannot
accept response while transferring request, my attempt has failed.

Seems even if there is a way to do so, there would be similiar limitations.

"Bliss" <bg***********@landolakes.com> ???
news:61**************************@posting.google.c om ???...
Hey Guys thanks for your insight. As to why I need two forms. I have
to handle a challange response request from this page that uses my
LDAP objects. They also want a form that you can put an email adress
and sent the page to anyone who is valid in the LDAP. The problem
being that the validation needs to be seperate between these froms.
Alas I dont think it is possible to seperate the validaion if all the
elements are in one web form. Anyway Thanks for all you response. I
still love .NET real good stuff. I give microsoft an B+....=-)

Nov 18 '05 #6
Doing validation in groups is a problem in 1.1. You might want to
check out Peter Blum's validation controls:

http://www.peterblum.com/VAM/Home.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 5 Nov 2004 16:14:15 -0800, bg***********@landolakes.com (Bliss)
wrote:
Hey Guys thanks for your insight. As to why I need two forms. I have
to handle a challange response request from this page that uses my
LDAP objects. They also want a form that you can put an email adress
and sent the page to anyone who is valid in the LDAP. The problem
being that the validation needs to be seperate between these froms.
Alas I dont think it is possible to seperate the validaion if all the
elements are in one web form. Anyway Thanks for all you response. I
still love .NET real good stuff. I give microsoft an B+....=-)


Nov 18 '05 #7

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

Similar topics

6
by: pauldepstein | last post by:
I am reading Grimshaw and Ortega's "C++ and Numerical Methods." They construct a vector class which contains the variable vec, a float* variable where the length of the array (number of...
6
by: DH | last post by:
I have a VERY basic question about figuring database size. I've inherited a database which is generally similar to this basic one: Item, Red, Blue, Green, Yellow (text), (int),(int),(int),(int)...
9
by: Malcolm | last post by:
After some days' hard work I am now the proud possessor of an ANSI C BASIC interpreter. The question is, how is it most useful? At the moment I have a function int basic(const char *script,...
4
by: Ramesh | last post by:
hi, Let me ask some basic questions. Can anybody explain me about the following questions: 1. When we have to create sn key? Whenever we compiled Component we have to create or it is a one time...
13
by: Pete | last post by:
I'm cross posting from mscom.webservices.general as I have received no answer there: There has been a number of recent posts requesting how to satisfactorily enable BASIC authorization at the...
5
by: Aussie Rules | last post by:
Hi, Having a mental block on this one. Have done it before but can't rack my brain on how... I have an object, with a bunch on property, and I add that object to a combo box. I want the...
4
by: MikeB | last post by:
I've been all over the net with this question, I hope I've finally found a group where I can ask about Visual Basic 2005. I'm at uni and we're working with Visual Basic 2005. I have some books, ...
1
by: frankhanretty | last post by:
Do I have to install Visual basic on the remote terminals as I did on the server? I have an visual basic 5 application running fine on my client's server and he is now networked. He wants to run the...
4
by: Chris Asaipillai | last post by:
Hi there My compay has a number of Visual Basic 6 applications which are front endeed onto either SQL Server or Microsoft Access databases. Now we are in process of planning to re-write these...
3
by: Scott Stark | last post by:
Hello, I'm trying to get a better handle on OOP programming principles in VB.NET. Forgive me if this question is sort of basic, but here's what I want to do. I have a collection of Employee...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...

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.