468,458 Members | 1,877 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,458 developers. It's quick & easy.

Invalid State w/ JS popup window


Hi,

I'm opening a popup window with JavaScript. It has a command button.

This is from the primary source (opener) window:
################################################## #################
// ================================================== =====
function popup01 ()
{
var win_url
= "http://localhost/Webfolder01/DBCtrl.aspx";
var win_name
= "DBpopup01";
var win_chrome
= "toolbar=0,scrollbars=1,location=1,statusbar=0,men ubar=0,resizable=1";
var win_dimn
= ",width=444,height=444,left = 290,top = 162";

DBname_popup = window.open (win_url, win_name, win_chrome + win_dimn);
if (window.focus) {DBname_popup.focus()}
}
// ================================================== =====
################################################## #################

When I click the command button on the popup window, and upon postback,
I get an HttpException:

[HttpException (0x80004005): The state information is invalid for this page
and might be corrupted.]

... along with:
[FormatException: Invalid character in a Base-64 string.]
Does anyone have any ideas as to what is causing this?
Thanks in advance!
The error page:
################################################## #####################################
################################################## #####################################

Server Error in '/Webfolder01' Application.
--------------------------------------------------------------------------------

The state information is invalid for this page and might be corrupted.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The state information
is invalid for this page and might be corrupted.

Source Error:
[No relevant source lines]
Source File: c:\WINNT\Microsoft.NET\Framework\v2.0.50727
\Temporary ASP.NET Files\webfolder01\4d30b6b5
\585efd3a\App_Web_znhipk8d.0.cs Line: 0

Stack Trace:
[FormatException: Invalid character in a Base-64 string.]
System.Convert.FromBase64String(String s) +0
System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString) +72
System.Web.UI.ObjectStateFormatter.System.Web.UI.I StateFormatter
.Deserialize(String serializedState) +4
System.Web.UI.Util.DeserializeWithAssert
(IStateFormatter formatter, String serializedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +140

[ViewStateException: Invalid viewstate.
Client IP: 127.0.0.1
Port: 1232
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
.NET CLR 1.1.4322; .NET CLR 2.0.50727)
ViewState: [a bunch of stuff]

[HttpException (0x80004005): The state information is invalid for this page
and might be corrupted.]
System.Web.UI.ViewStateException.ThrowError
(Exception inner, String persistedState,
String errorPageMessage, Boolean macValidationError) +116
System.Web.UI.HiddenFieldPageStatePersister.Load() +240
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +83
System.Web.UI.Page.LoadAllState() +35
System.Web.UI.Page.ProcessRequestMain
(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +6953
System.Web.UI.Page.ProcessRequest
(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +154
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.ctrlinit_ctrlinit12b_aspx.ProcessRequest(HttpC ontext context)
in c:\WINNT\Microsoft.NET\Framework\v2.0.50727
\Temporary ASP.NET Files\webfolder01\4d30b6b5
\585efd3a\App_Web_znhipk8d.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication
.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep
(IExecutionStep step, Boolean& completedSynchronously) +64

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42

################################################## #####################################
################################################## #####################################

Thanks in advance!
Apr 25 '06 #1
2 1814
http://groups.google.com/group/micro...dc13b319ed71de
<no**@no.com> wrote in message
news:1t********************************@4ax.com...

Hi,

I'm opening a popup window with JavaScript. It has a command button.

This is from the primary source (opener) window:
################################################## #################
// ================================================== =====
function popup01 ()
{
var win_url
= "http://localhost/Webfolder01/DBCtrl.aspx";
var win_name
= "DBpopup01";
var win_chrome
=
"toolbar=0,scrollbars=1,location=1,statusbar=0,men ubar=0,resizable=1";
var win_dimn
= ",width=444,height=444,left = 290,top = 162";

DBname_popup = window.open (win_url, win_name, win_chrome + win_dimn);
if (window.focus) {DBname_popup.focus()}
}
// ================================================== =====
################################################## #################

When I click the command button on the popup window, and upon postback,
I get an HttpException:

[HttpException (0x80004005): The state information is invalid for this
page
and might be
corrupted.]

... along with:
[FormatException: Invalid character in a Base-64 string.]
Does anyone have any ideas as to what is causing this?
Thanks in advance!
The error page:
################################################## #####################################
################################################## #####################################

Server Error in '/Webfolder01' Application.
--------------------------------------------------------------------------------

The state information is invalid for this page and might be corrupted.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information
about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The state information
is invalid for this page and might be corrupted.

Source Error:
[No relevant source lines]
Source File: c:\WINNT\Microsoft.NET\Framework\v2.0.50727
\Temporary ASP.NET Files\webfolder01\4d30b6b5
\585efd3a\App_Web_znhipk8d.0.cs Line: 0

Stack Trace:
[FormatException: Invalid character in a Base-64 string.]
System.Convert.FromBase64String(String s) +0
System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString) +72
System.Web.UI.ObjectStateFormatter.System.Web.UI.I StateFormatter
.Deserialize(String serializedState) +4
System.Web.UI.Util.DeserializeWithAssert
(IStateFormatter formatter, String serializedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +140

[ViewStateException: Invalid viewstate.
Client IP: 127.0.0.1
Port: 1232
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
.NET CLR 1.1.4322; .NET CLR 2.0.50727)
ViewState: [a bunch of stuff]

[HttpException (0x80004005): The state information is invalid for this
page
and might be corrupted.]
System.Web.UI.ViewStateException.ThrowError
(Exception inner, String persistedState,
String errorPageMessage, Boolean macValidationError) +116
System.Web.UI.HiddenFieldPageStatePersister.Load() +240
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +83
System.Web.UI.Page.LoadAllState() +35
System.Web.UI.Page.ProcessRequestMain
(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +6953
System.Web.UI.Page.ProcessRequest
(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +154
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.ctrlinit_ctrlinit12b_aspx.ProcessRequest(HttpC ontext context)
in c:\WINNT\Microsoft.NET\Framework\v2.0.50727
\Temporary ASP.NET Files\webfolder01\4d30b6b5
\585efd3a\App_Web_znhipk8d.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication
.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep
(IExecutionStep step, Boolean& completedSynchronously) +64

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET
Version:2.0.50727.42

################################################## #####################################
################################################## #####################################

Thanks in advance!

Apr 25 '06 #2
On Tue, 25 Apr 2006 15:52:50 -0700, "MSDN" <sq**********@hotmail.com> wrote:
http://groups.google.com/group/micro...dc13b319ed71de


Hi,

I tried the suggested remedy, and it had no effect:
################################################## ######################
<%@ Page Language="C#" AutoEventWireup="True" Inherits="dyn_ctrl_page"
enableEventValidation="false" Debug="true" %>

################################################## ######################
Is this problem being caused a bug in ASP.NET 2.0?

..
Apr 25 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Obantec Support | last post: by
1 post views Thread by SteveComplex | last post: by
7 posts views Thread by anthony.turcotte | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.