Forum Moderators: open

Message Too Old, No Replies

Auto Submit and ASPX page onLoad

         

IanTurner

10:11 am on Apr 29, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



We are trying to get an ASPX page to auto submit on load, passing hidden fields as parameters. The submit goes to an ASP file on a different server.

We were using a javascript submit in the onLoad event in the body tag, but ASPX appears to hijack this event.

IanTurner

5:39 pm on Apr 29, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



The ASPX file assumes that the action for the submit is the curent file and submits the page back to itself.

Most annoying behaviour.

mattglet

6:28 pm on Apr 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



With .NET, the file can't post anywhere except itself. This is by design, and there's nothing you can do about it, except HTTP Post your data somewhere (if you're looking to post data). Welcome to this new and wonderful world.

-Matt

IanTurner

9:33 pm on Apr 29, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



With .NET, the file can't post anywhere except itself.

WHY?

Isn't that a massively retrograde step?

mattglet

1:52 pm on Apr 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Don't fret... It's going to be implemented in v2.

http://weblogs.asp.net/pwilson/archive/2003/10/29/34597.aspx [weblogs.asp.net]

-Matt

IanTurner

3:40 pm on Apr 30, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Thanks Matt - its good to know its on the way - we can at least plan for a future migration of applications.