469,945 Members | 1,830 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Question: HTML char limit for aspx page???

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.
Nov 17 '05 #1
11 1786
What does View Source show you?
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

"VB Programmer" <gr*********@go-intech.com> wrote in message
news:eM****************@TK2MSFTNGP09.phx.gbl...
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!

"VB Programmer" <gr*********@go-intech.com> wrote in message
news:ef****************@tk2msftngp13.phx.gbl...
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.


Nov 17 '05 #2
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("n etscape") > -1) {
theform = document.forms["Form1"];
}
else {
theform = document.Form1;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>

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

"John Saunders" <jo***********@surfcontrol.com> wrote in message
news:eu**************@TK2MSFTNGP12.phx.gbl...
What does View Source show you?
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

"VB Programmer" <gr*********@go-intech.com> wrote in message
news:eM****************@TK2MSFTNGP09.phx.gbl...
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!

"VB Programmer" <gr*********@go-intech.com> wrote in message
news:ef****************@tk2msftngp13.phx.gbl...
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.



Nov 17 '05 #3
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
jo***********@surfcontrol.com

"VB Programmer" <gr*********@go-intech.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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("n etscape") > -1) {
theform = document.forms["Form1"];
}
else {
theform = document.Form1;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>

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

"John Saunders" <jo***********@surfcontrol.com> wrote in message
news:eu**************@TK2MSFTNGP12.phx.gbl...
What does View Source show you?
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

"VB Programmer" <gr*********@go-intech.com> wrote in message
news:eM****************@TK2MSFTNGP09.phx.gbl...
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!

"VB Programmer" <gr*********@go-intech.com> wrote in message
news:ef****************@tk2msftngp13.phx.gbl...
> 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.
>
>



Nov 17 '05 #4
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" <jo***********@surfcontrol.com> wrote in message
news:u0**************@TK2MSFTNGP09.phx.gbl...
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
jo***********@surfcontrol.com

"VB Programmer" <gr*********@go-intech.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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("n etscape") > -1) {
theform = document.forms["Form1"];
}
else {
theform = document.Form1;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>

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

"John Saunders" <jo***********@surfcontrol.com> wrote in message
news:eu**************@TK2MSFTNGP12.phx.gbl...
What does View Source show you?
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

"VB Programmer" <gr*********@go-intech.com> wrote in message
news:eM****************@TK2MSFTNGP09.phx.gbl...
> 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!
>
> "VB Programmer" <gr*********@go-intech.com> wrote in message
> news:ef****************@tk2msftngp13.phx.gbl...
> > 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.
> >
> >
>
>



Nov 17 '05 #5
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 }
Nov 17 '05 #6
"VB Programmer" <gr*********@go-intech.com> wrote in message
news:eu**************@tk2msftngp13.phx.gbl...
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"?
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

Nov 17 '05 #7
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).

"John Saunders" <jo***********@surfcontrol.com> wrote in message
news:Oa**************@TK2MSFTNGP09.phx.gbl...
"VB Programmer" <gr*********@go-intech.com> wrote in message
news:eu**************@tk2msftngp13.phx.gbl...
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"?
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

Nov 17 '05 #8
"VB Programmer" <gr*********@go-intech.com> wrote in message
news:eV**************@TK2MSFTNGP12.phx.gbl...
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?
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

Nov 17 '05 #9
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="dDwtMTI3OTMzNDM4NDs7PnMPq6yJMO85lyWW00QfPpg usVje" />
***** 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
Nov 17 '05 #10
"VB Programmer" <gr*********@go-intech.com> wrote in message
news:O2**************@TK2MSFTNGP09.phx.gbl...
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.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
Nov 17 '05 #11
Thanks for your help.

I appreciate the proactive and insightful suggestions.

"John Saunders" <jo***********@surfcontrol.com> wrote in message
news:u3**************@tk2msftngp13.phx.gbl...
"VB Programmer" <gr*********@go-intech.com> wrote in message
news:O2**************@TK2MSFTNGP09.phx.gbl...
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.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

Nov 17 '05 #12

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by THX-1138 | last post: by
5 posts views Thread by danc | last post: by
5 posts views Thread by z. f. | last post: by
4 posts views Thread by Neil.Smith | last post: by
1 post views Thread by John | last post: by
16 posts views Thread by Chad | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.