473,472 Members | 1,800 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2007
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Noozer | last post by:
When using the WebBrowser control, is it possible to cause popup windows to appear within the WebBrowser control itself instead of a new window? This is what I've written in the NewWindow2 event,...
5
by: Obantec Support | last post by:
Hi i leached some code and strung together a popup i need for a page with 5 help buttons. Now i could use 5 scripts and pre-load the values but i would rather get a better understanding of how...
15
by: | last post by:
So many websites can get around my Googlebar's popup blockers. Even Opera 8 can not stop those popups. I looked into the codes, and I can find nothing showing me how it is done. Can anyone help me...
4
by: Davey | last post by:
I have a website which has a popup window (this only opens when the user chooses to open it). In the popup window I have a <select> control which lists a selection of "classes". Each class has a...
4
by: Matt Jensen | last post by:
Howdy all Hopefully I can explain my problem straightforwardly. In it's simplest explanation, what I want to do is have a hyperlink that, when clicked, executes some client side JavaScript and...
1
by: SteveComplex | last post by:
I'm currently working on a project developing a web application that makes heavy use of 3rd-party controls, popup windows and frames ( not my design I hasten to add ). Some of the pages make use...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
0
eboyjr14
by: eboyjr14 | last post by:
I have this xml metacity thing, and it is giving off this error: The file format is invalid. <?xml version="1.0"?> <metacity_theme> <info> <name>Royale</name> <author>Devin...
3
by: Tomasz J | last post by:
Hello Developers! A lot has been written about Java Script window.open() function and lost session state. But the most recent version of IE seems to handle it correctly. But now I have an...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.