G
Guest
Hey all,
I'm still trying to wrap my mind around ASP.Net (and figure out whether or
not ASP.Net requires a complete overhaul of my Web programing philosophies),
so I apologize if these questions are a waste of anyone's time.
I'm pretty solid on the idea that <form runat=server> means that data from
the page are posted back to the same page again. And I understand how ASP.Net
turns Web pages into more event-driven beasts.
However, say I've got a page where users can enter several different
parameters, and then they submit the form and the app searches a database
based on their entries and returns a result. In classic ASP, I'd probably set
this up as two different documents, a search page (which may only be .html)
and a results page. The data would be passed between the two pages via a form
post.
I know it is possible, even in classic ASP, to have the search page and the
results page be the same. Depending on circumstances, I've done a few like
that. But my understanding if my search form runs at the server, then I HAVE
to make the search page and the results page the same. Is that true?
I know that I could have the normal form post operation in ASP.Net, but I
was told that I would quickly learn not to do that because ASP.Net provides a
"much better" way to do that. What about ASP.Net is better for relatively
simple and commonplace apps such as that one? From what I've experienced so
far, the only thing that's "better" about ASP.Net is that it automtaically
saves form values from page to page - something that, in my opinion, isn't
always desirable anyways.
I guess I'm still not clear what the advantages of ASP.Net are.
I'm still trying to wrap my mind around ASP.Net (and figure out whether or
not ASP.Net requires a complete overhaul of my Web programing philosophies),
so I apologize if these questions are a waste of anyone's time.
I'm pretty solid on the idea that <form runat=server> means that data from
the page are posted back to the same page again. And I understand how ASP.Net
turns Web pages into more event-driven beasts.
However, say I've got a page where users can enter several different
parameters, and then they submit the form and the app searches a database
based on their entries and returns a result. In classic ASP, I'd probably set
this up as two different documents, a search page (which may only be .html)
and a results page. The data would be passed between the two pages via a form
post.
I know it is possible, even in classic ASP, to have the search page and the
results page be the same. Depending on circumstances, I've done a few like
that. But my understanding if my search form runs at the server, then I HAVE
to make the search page and the results page the same. Is that true?
I know that I could have the normal form post operation in ASP.Net, but I
was told that I would quickly learn not to do that because ASP.Net provides a
"much better" way to do that. What about ASP.Net is better for relatively
simple and commonplace apps such as that one? From what I've experienced so
far, the only thing that's "better" about ASP.Net is that it automtaically
saves form values from page to page - something that, in my opinion, isn't
always desirable anyways.
I guess I'm still not clear what the advantages of ASP.Net are.