472,377 Members | 1,567 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,377 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 1888
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: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...
0
by: F22F35 | last post by:
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent...

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.