Are there any page size limitations?

G

GroupReader

This might be best in an AJAX or JavaScript forum, but you guys seem
to know everything!

Background:
I'm working in ASP.Net, with UpdatePanel and Infragistics tab
controls. The entire tabcontrol is inside of an updatePanel. The tab
control contains javascript. In order to get my javascript to load
properly after the UpdatePanel refresh, I put defer="defer" on the
script tag (not sure if this is important). Everything seems to work
fine... until...

When I add more code to my main page that contains the update panel,
the javascript in my tabcontrol stops working. I've been over it 100
times and I'm sure all javascript is syntactically correct. If I add
an image tag to my html, my javascript stops working. If I remove it,
my javascript works again. It's as if I've run into some sort of a
size limitation and my code can't get any bigger.

Does anyone know of:
1) Any size limitations for amount of script or html inside of an
UpdatePanel???
2) Any size limitation for how big an html page can be? I'm guessing
there are limitations to the amount of data that can be POSTED /
SUBMITTED.
3) Are there any size limitations for how big a javascript file can
be? Inline or separate file.
4) Are there any limitations to how many events can be "attached"??
For example, I "attach" a function to the "onchange" event of every
textbox on the page to keep track of "IsDirty".

Any help would be greatly appreciated. Thank you!
 
G

GroupReader

Okay, I forgot about the default configuration of 4MB limit on POST
size. I'll check that. I don't think my page is that big though -
it's pretty large, but I think it's only about 1 MB. Anyway, the
problem is not when submitting data to the server. The problem is
that after the page renders, my javascript functions are not loaded.
I can't call a simple function that does alert('hello');

Thanks.
 
M

Masudur

Okay, I forgot about the default configuration of 4MB limit on POST
size. I'll check that. I don't think my page is that big though -
it's pretty large, but I think it's only about 1 MB. Anyway, the
problem is not when submitting data to the server. The problem is
that after the page renders, my javascript functions are not loaded.
I can't call a simple function that does alert('hello');

Thanks.

Hi...

in one of my project ... i had a smiler problem... one of my project
member did identified the problem...
the problem was the structure of the page... i had lot of nested
tables and lot of other div elements...
the page was taking almost 15 seconds to render...

Well its always better to keep your javascripts in a diffrent
javascript file... in this way you are avoiding any inline
javascript... keep all your styles in separate style sheet file... and
do use simple naming...

okay here is why i am telling you about simple naming... you you have
a page call somepage... and a user control called someusercontrol and
in that usercontrol have a grid called somegrid so a cell of a grid
will have a id like this
somepage_someusercontrol_somegird_rownumverid_cellid... and if you are
using master page one more prefix will be added to the id... think of
any the other postback events in the page...

so you got to think all before optimize the size of the page...

Thanks
Munna
www.kaz.com.bd
http://munnacs.110mb.com
 
M

Michael Nemtsev

Hello GroupReader,

See there http://msdn2.microsoft.com/en-us/library/wfhk16yk.aspx
Some info about the limitation

As I remember, in Dino Esposito book "ASP.NET Advanced Topic" he examined
that behaviour, unfortunatelly have no book next to me

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

G> This might be best in an AJAX or JavaScript forum, but you guys seem
G> to know everything!
G>
G> Background:
G> I'm working in ASP.Net, with UpdatePanel and Infragistics tab
G> controls. The entire tabcontrol is inside of an updatePanel. The
G> tab
G> control contains javascript. In order to get my javascript to load
G> properly after the UpdatePanel refresh, I put defer="defer" on the
G> script tag (not sure if this is important). Everything seems to work
G> fine... until...
G> When I add more code to my main page that contains the update panel,
G> the javascript in my tabcontrol stops working. I've been over it 100
G> times and I'm sure all javascript is syntactically correct. If I add
G> an image tag to my html, my javascript stops working. If I remove
G> it, my javascript works again. It's as if I've run into some sort of
G> a size limitation and my code can't get any bigger.
G>
G> Does anyone know of:
G> 1) Any size limitations for amount of script or html inside of an
G> UpdatePanel???
G> 2) Any size limitation for how big an html page can be? I'm
G> guessing
G> there are limitations to the amount of data that can be POSTED /
G> SUBMITTED.
G> 3) Are there any size limitations for how big a javascript file can
G> be? Inline or separate file.
G> 4) Are there any limitations to how many events can be "attached"??
G> For example, I "attach" a function to the "onchange" event of every
G> textbox on the page to keep track of "IsDirty".
G> Any help would be greatly appreciated. Thank you!
G>
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

GroupReader said:
This might be best in an AJAX or JavaScript forum, but you guys seem
to know everything!

Background:
I'm working in ASP.Net, with UpdatePanel and Infragistics tab
controls. The entire tabcontrol is inside of an updatePanel. The tab
control contains javascript. In order to get my javascript to load
properly after the UpdatePanel refresh, I put defer="defer" on the
script tag (not sure if this is important). Everything seems to work
fine... until...

When I add more code to my main page that contains the update panel,
the javascript in my tabcontrol stops working. I've been over it 100
times and I'm sure all javascript is syntactically correct. If I add
an image tag to my html, my javascript stops working. If I remove it,
my javascript works again. It's as if I've run into some sort of a
size limitation and my code can't get any bigger.

Not at all. It has to be something with the code that you are adding.
Does anyone know of:
1) Any size limitations for amount of script or html inside of an
UpdatePanel???

That's limited to the amount of memory that can be used to contain the
controls and render the code. That would be at least several hundred
megabyges, so that's not a limit that you would easily reach.
2) Any size limitation for how big an html page can be? I'm guessing
there are limitations to the amount of data that can be POSTED /
SUBMITTED.

Yes, there is, but you are not posting much data, are you? Remember that
only the values from the form fields are posted, not the entire page.
3) Are there any size limitations for how big a javascript file can
be? Inline or separate file.

That would also be limited by the available memory.
4) Are there any limitations to how many events can be "attached"??
For example, I "attach" a function to the "onchange" event of every
textbox on the page to keep track of "IsDirty".

That would also be limited by the available memory.
 
G

GroupReader

Yeah, yesterday I thougtht as you do now... but evidence is pointing
in another direction.

I've got it narrowed down so much that I can add one image tag in the
middle of the page (example: <img src="../images/edit.gif" alt="edit" /
) and then my script stops working at the bottom of the page.

As far as naming conventions go, to keep the names simple... I called
my Masterpage "MP" and my ContentPlaceHolder "cp" for this very
reason... but the names are fairly complex after that... and I *do*
have several levels of nesting: MasterPage, ContentPlaceHolder,
LeftDiv, RightDiv. Leftdiv contains huge treeview in UpdatePanel.
RightDiv contains fairly large tabcontainer in updatePanel.
tabcontainer user control has Infragistics tab control. Each tab of
the tab control contains more user controls, etc... I'm referencing
3 or 4 external .js files from the Master Page, but each userControl
contains 2 to 10 custom functions of their own. The ids in the
treeview and the ids in the tabs can get to be aobut 20 chars long.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top