Are there any page size limitations?

Discussion in 'ASP .Net' started by GroupReader, Jul 3, 2007.

  1. GroupReader

    GroupReader Guest

    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!
    GroupReader, Jul 3, 2007
    #1
    1. Advertising

  2. GroupReader

    GroupReader Guest

    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.
    GroupReader, Jul 3, 2007
    #2
    1. Advertising

  3. GroupReader

    Masudur Guest

    On Jul 3, 11:05 am, GroupReader <> wrote:
    > 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
    Masudur, Jul 3, 2007
    #3
  4. 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>
    Michael Nemtsev, Jul 3, 2007
    #4
  5. GroupReader wrote:
    > 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öran Andersson
    _____
    http://www.guffa.com
    =?ISO-8859-1?Q?G=F6ran_Andersson?=, Jul 3, 2007
    #5
  6. GroupReader

    GroupReader Guest

    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.
    GroupReader, Jul 3, 2007
    #6
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Robert Strickland

    File Upload and File Size Limitations

    Robert Strickland, Oct 29, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    4,633
    Lau Lei Cheong
    Nov 1, 2004
  2. Neil Zanella
    Replies:
    4
    Views:
    473
    Gianni Mariani
    Oct 9, 2003
  3. glennklockwood

    total array size limitations?

    glennklockwood, Mar 13, 2009, in forum: C Programming
    Replies:
    10
    Views:
    841
  4. Michael Riedel
    Replies:
    2
    Views:
    1,331
    Michael
    Aug 27, 2009
  5. Wes Gamble
    Replies:
    4
    Views:
    92
    Wes Gamble
    Mar 7, 2007
Loading...

Share This Page