I noticed that the Action and Method options are still available for
use with ASP.NET forms. What will happen to the post back data if I
set the action and method options.
:
Forms in ASP.NET postback to the same page that rendered them so
you can take advantage of the object model. When you postback all
of the server side controls are recreated and repopulated with the
values that are posted back to the page. This provides for a much
higher level programming model, and therefore makes you as the
developer more productive.
Now, if you really want to post to a second page, you can. But then
you're back to [old] ASP style Request.Forms programming.
As an aside, in ASP.NET v2.0 you can do a cross page postback
without sacrificing
the ASP.NET object model. Some notes on that are here:
http://staff.develop.com/ballen/blog/PermaLink.aspx?guid=483742fd-0
1a 2-4975-b76c-d3b8b4f29eaf
But if you need to post to a completely different application, then
it's not different than before.
-Brock
DevelopMentor
http://staff.develop.com/ballen
How do I post a form to a specified url using an ASP.NET with a
code behind? With traditional ASP I used to be able to simply use:
action="
https://www.domain.com/process.asp"
Thanks, Justin.