471,354 Members | 1,954 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

post to another page

I have a postback on an aspx-page. In this postback I perform a
redirect. The page is quite heavy, so instead of performing a postback
I perform a post to another empty page, which then can do the
calculations necessary to perform the redirect. The post to another
page is done by changing the action property of the form clientside.
First of all: This doesn't seem like a nice solution. A bit of a hack.
Is there a better way to perform a post to another page from an aspx.
Secondly: When I hit the empty page I get an exception. I suppose it is
due to a mismatch in the viewstate information:
An uncaught exception occurred:Unable to validate data. Stacktrace:
at System.Web.Configuration.MachineKey.GetDecodedData (Byte[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
at System.Web.UI.LosFormatter.Deserialize(String input)

Any idea how I can solve this problem?

Another strange thing is that this exception never shows up in the
browser. It is only caught in the Global.asax method
Application_Error(...). Why is that??

Jul 21 '05 #1
0 1025

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Victor | last post: by
7 posts views Thread by Matt | last post: by
9 posts views Thread by Alan Silver | last post: by
10 posts views Thread by glenn | last post: by
12 posts views Thread by Britney | last post: by
2 posts views Thread by MOUSTAFA ARAFA | last post: by
5 posts views Thread by =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.