473,385 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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

Similar topics

43
by: nospam | last post by:
I got three (3) files (1) Untitled.aspx (2) Untitled.aspx.1.cs (3) Untitled.aspx.2.cs These three files must be used together to make file #1, Untitled.aspx, page work via J.I.T. when the...
0
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to...
3
by: mca | last post by:
Hi everyone, I'm new to asp.net and i have a question about separating the html code from the programming code. i have an unknown numbers of entries in my table. I want to make a hyperlink...
5
by: THX-1138 | last post by:
hi, I am having a trouble at work. We currently have many pages in our site and we are having trouble with dll's.( we think ) Our site outputs static pages as .aspx pages becasue we have a...
5
by: danc | last post by:
I keep getting this error. I have scoured the web and could not find any applicable information. It seems to have really started since I upgraded to the 1.1 framework. Any help is appreciated. ...
5
by: z. f. | last post by:
hi, i have a vb.net web application and i make a request using internet explorer to an aspx page. the aspx page size if over 170KB, and the page in internet explorer looks truncated and in the...
4
by: Neil.Smith | last post by:
I can't seem to find any references to this, but here goes: In there anyway to parse an html/aspx file within an asp.net application to gather a collection of controls in the file. For instance...
1
by: John | last post by:
Hi I have written a Split function which in turn calls the standard string split function. Code is below; Function Split1(ByVal Expression As String, Optional ByVal Delimiter As String = " ",...
16
by: Chad | last post by:
Given the following #include <stdio.h> int main(void) { char line; long arg1, arg2; while(fgets(line, BUFSIZ, stdin) != NULL){
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.