Question: HTML char limit for aspx page???

  • Thread starter Thread starter VB Programmer
  • Start date Start date
V

VB Programmer

Is there a limit as to how big an aspx page's html can be? (number of
characters)

Why do I ask? I have a webform with a lot of ActiveX controls (shows up as
OBJECT in html). When I place like 35 of these objects the form shows up
BLANK in a web browser. When I remove a few (ANY few) I can see the page.
Any ideas?

Thanks.
 
That's the interesting thing. It has some scripting stuff at the beginning
but NOTHING IN THE BODY. See below...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>OfficeViewDc</title>
<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
</HEAD>
<body ms_positioning="GridLayout">
<form name="Form1" method="post" action="OfficeViewDc.aspx" id="Form1">
<input type="hidden" name="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" value="dDw2MzkxODYzMz..." />

<script language="JavaScript">
<!--

function SymError()
{
return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
return (new Object());
}

window.open = SymWinOpen;

//-->
</script>

<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
theform = document.forms["Form1"];
}
else {
theform = document.Form1;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>

******************
 
Ok, how about replacing one of the <object /> elements with the same number
of characters in a <div> or something. That will tell you whether it's a
question of the size of HTML or the number of ActiveX controls.
--
John Saunders
Internet Engineer
(e-mail address removed)

VB Programmer said:
That's the interesting thing. It has some scripting stuff at the beginning
but NOTHING IN THE BODY. See below...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>OfficeViewDc</title>
<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
</HEAD>
<body ms_positioning="GridLayout">
<form name="Form1" method="post" action="OfficeViewDc.aspx" id="Form1">
<input type="hidden" name="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" value="dDw2MzkxODYzMz..." />

<script language="JavaScript">
<!--

function SymError()
{
return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
return (new Object());
}

window.open = SymWinOpen;

//-->
</script>

<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
theform = document.forms["Form1"];
}
else {
theform = document.Form1;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>

******************

John Saunders said:
What does View Source show you?
--
John Saunders
Internet Engineer
(e-mail address removed)

in
Word up shows
up
 
TEST 1: There are like 35 OBJECT tags. I kept removing them until the form
showed up (at 25 OBJECTS). I added a bunch of 'aaaaaaa' until I was over
660,000 characters. The form was blank at first but after about a minute
somehow the form refreshed and everything appeared.

TEST2: I created a brand new web form and added the same 36 (activeX)
OBJECTS the it. Ran the webform - IT WORKED! Went to HTML view and played
the form, it did NOT work (same results). Any ideas?


John Saunders said:
Ok, how about replacing one of the <object /> elements with the same number
of characters in a <div> or something. That will tell you whether it's a
question of the size of HTML or the number of ActiveX controls.
--
John Saunders
Internet Engineer
(e-mail address removed)

VB Programmer said:
That's the interesting thing. It has some scripting stuff at the beginning
but NOTHING IN THE BODY. See below...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>OfficeViewDc</title>
<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
</HEAD>
<body ms_positioning="GridLayout">
<form name="Form1" method="post" action="OfficeViewDc.aspx" id="Form1">
<input type="hidden" name="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" value="dDw2MzkxODYzMz..." />

<script language="JavaScript">
<!--

function SymError()
{
return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
return (new Object());
}

window.open = SymWinOpen;

//-->
</script>

<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
theform = document.forms["Form1"];
}
else {
theform = document.Form1;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>

******************

John Saunders said:
What does View Source show you?
--
John Saunders
Internet Engineer
(e-mail address removed)

FYI:

It shows up FINE in the Design View. Also, I copied/pasted the text in
Word
and it came out to 616,242 char (w/spaces) and 526,708 (without).

Please assist. Thanks!

Is there a limit as to how big an aspx page's html can be? (number of
characters)

Why do I ask? I have a webform with a lot of ActiveX controls
(shows
up
as
OBJECT in html). When I place like 35 of these objects the form shows
up
BLANK in a web browser. When I remove a few (ANY few) I can see the
page.
Any ideas?

Thanks.
 
Also weird, when the form shows up blank I hit refresh twice and it shows me
this:

0

<OBJE1.1style="WIDTH: 168px; HEIGHT: 40px"
classid="clsid:D940E4C8-6079-11CE-88CB-0020AF6845F6">
Transfer-Encoding: chunked
<PARAM NAME="_Version" VALUE="393218">
<PARAM NAME="_ExtentX" VALUE="4445">
<PARAM NAME="_ExtentY" VALUE="1058">
<PARAM NAME="_StockProps" VALUE="68">
<PARAM NAME="Enabled" VALUE="-1">
:
:
:
{ AND SO ON }
 
VB Programmer said:
TEST 1: There are like 35 OBJECT tags. I kept removing them until the form
showed up (at 25 OBJECTS). I added a bunch of 'aaaaaaa' until I was over
660,000 characters. The form was blank at first but after about a minute
somehow the form refreshed and everything appeared.

I recommend you wait a while. It could be taking IE a while to parse all
that text. Load the page, then don't touch IE for a minute or two.
TEST2: I created a brand new web form and added the same 36 (activeX)
OBJECTS the it. Ran the webform - IT WORKED! Went to HTML view and played
the form, it did NOT work (same results). Any ideas?

What do you mean "Went to HTML view and played the form"?
 
I did wait a while and the page fully loaded. I looked at the source to
verify.

I "Went to HTML view" in the Designer then went to Debug/Start. It worked
when I viewed it in Design view, but when I switched it to HTML view then
clicked on Debug/Start it failed to load (it was blank).
 
VB Programmer said:
I did wait a while and the page fully loaded. I looked at the source to
verify.

I "Went to HTML view" in the Designer then went to Debug/Start. It worked
when I viewed it in Design view, but when I switched it to HTML view then
clicked on Debug/Start it failed to load (it was blank).

This is the part that doesn't make any sense. Did you also save the page
after switching to HTML view?

Are there any squiggly red lines in HTML view? Any complaints when you
format the HTML?
 
I did another test.

Here's exactly what I did:
1. Create a brand new ASP.NET project with a webform1.aspx.
2. Placed 50 occurances of the non-managed ActiveX control on the
webform1.aspx. Saved it.
3. Debug/Start. Everything shows up fine.
4. Hit 'Refresh' everything is blank. (Even if I wait a while.)
Debug/Start again - still blank. The View Source is this...

**** SAMPLE START *******
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form name="Form1" method="post" action="WebForm1.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE"
value="dDwtMTI3OTMzNDM4NDs7PnMPq6yJMO85lyWW00QfPpgusVje" />
***** SAMPLE END ********

Hit 'Refresh' again, and I get this IN THE BROWSER....

***** SAMPLE START ******
0

<OBJE1.1style="Z-INDEX: 100; LEFT: 456px; WIDTH: 144px; POSITION: absolute;
TOP: 384px; HEIGHT: 38px"
Transfer-Encoding: chunked
classid="clsid:D940E4C8-6079-11CE-88CB-0020AF6845F6">
<PARAM NAME="_Version" VALUE="393218">
<PARAM NAME="_ExtentX" VALUE="3810">
:
:
******* SAMPLE END *******

It continues to load VERY SLOWLY. FYI: My HTML (in the designer view)
starts off like this...

******* SAMPLE START ******
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb"
Inherits="zzz2.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<OBJECT style="Z-INDEX: 100; LEFT: 456px; WIDTH: 144px; POSITION:
absolute; TOP: 384px; HEIGHT: 38px"
classid="clsid:D940E4C8-6079-11CE-88CB-0020AF6845F6">
<PARAM NAME="_Version" VALUE="393218">
<PARAM NAME="_ExtentX" VALUE="3810">
:
:
****** SAMPLE END ********

If you want I can send you the ActiveX control for you to test.

Thanks!
Robert
 
VB Programmer said:
I did another test.

Here's exactly what I did:
1. Create a brand new ASP.NET project with a webform1.aspx.
2. Placed 50 occurances of the non-managed ActiveX control on the
webform1.aspx. Saved it.
3. Debug/Start. Everything shows up fine.
4. Hit 'Refresh' everything is blank. (Even if I wait a while.)
Debug/Start again - still blank. The View Source is this...

This is looking more and more like an IE bug (or rather, an MSHTML bug).
Recall that both IE and the VS.NET design mode use the same HTML rendering
engine.

I'm about out of clues. I'm guessing that some piece of code doesn't like to
see such an unusually large number of ActiveX controls. Perhaps you could
create a few meta-controls? Five controls each performing the functions of
ten of the originals might work better.

Also, have you played with the security settings? Try using the least-secure
settings and see if it's any different.
 
Back
Top