Why does asp.net process forms to its own page?

 
Post new topic   Reply to topic    Aprelium Forum Index -> ASP.NET
View previous topic :: View next topic  
Author Message
Sterson51
-


Joined: 19 Nov 2009
Posts: 1

PostPosted: Fri Nov 20, 2009 8:36 am    Post subject: Why does asp.net process forms to its own page? Reply with quote

In asp.net you cannot set the action= to a different page. It always processes the form in the same page as the form itself. Why is this? It seems that this limits its functionality.
Back to top View user's profile Send private message
Toasty
-


Joined: 21 Feb 2008
Posts: 298
Location: Chicago, IL

PostPosted: Wed Nov 25, 2009 5:51 pm    Post subject: Reply with quote

I'm not familiar with ASP, but I'll take a stab at it.

Do your URLs look like this:

action=?blah=blah

- OR -

action=SCRIPT_URL + ?blah=blah

--
If so, it is calling itself.


If that's the case, change it to a full path to the new script, as below:

action=http://www.site.com/script.asp?blah=blah

That should work.
_________________
Audit the secure configuration of your server headers!
Back to top View user's profile Send private message Visit poster's website
zinksmith1
-


Joined: 17 Jul 2010
Posts: 9

PostPosted: Tue Jul 20, 2010 8:45 am    Post subject: Re: Why does asp.net process forms to its own page? Reply with quote

When the ASP.NET runtime processes a request for an ASP.NET resource, such as an ASP.NET page or ASP.NET Web service, the request raises a number of events during its lifecycle. There are events raised at the very beginning and very end of the request, ones raised when the request is being authenticated and authorized, an event raised in the case of an unhandled exception, and so forth.
_________________
Current Headlines PCB Design Online UPS
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> ASP.NET All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group