Not So Basic Question.....

  • Thread starter Thread starter Bliss
  • Start date Start date
B

Bliss

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
 
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.
 
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+....=-)
 
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.
 
Back
Top