Showing posts with label cool. Show all posts
Showing posts with label cool. Show all posts

Saturday, March 24, 2012

My Web Page Is Too Big After Use Asp.Net Ajax & Control Toolkit

I installed and using the Asp.Net Ajax & Control Toolkit in my web site.I am enjoy the cool features , except for one problem : the web page became too big to open,because the script file too large(one file is 255KB).

Yes, I know if a user opened my web page once ,it will be faster ,because the script file will not download again . But I think major new visitor will not wait for 1 or 2 min to open my web .

Is any body has the same problem? And is a solution ?

Thanks a lot !

I install the Asp.net Ajax and Copy Control Toolkit dll file to my web site bin folder, and add reference it in web.

the 255KB file is :

http://www.iam2ya.com/ScriptResource.axd?d=vrvSMawp_0WGqqmTGX1asI3T2R_vAVNchQRILcRhDeu99DMl7dd3CdOiSAo_o9GSoON-VrGYckQdXYdSTjo6zEIuvurZyzx_M44XRjh_GYU1&t=633056550088536400

the Ajaxextention version is "v1.0.61025"

the Control Toolkit version is "1.0.10123.0 "

Hi,

in the web.config file, do you have debug="true"? If so, change it to false. This results in using the production client javascripts instead of the debug ones that are quite larger.

Grz, Kris.

Wednesday, March 21, 2012

Need help getting started

Ok, I'm quite new with AJAX and it seems cool... I'm running ASP.NET 2.0 and I believe I have ASP.NET AJAX - I say believe because I went to apply the "convert" instructions and the mods already seem to be in place...

If I underatand correctly, AJAX allows us to put display type controls inside UpdatePanels and then have them update with new information based on receiving events from user input type controls - like buttons. I have several UpdatePanels with AsyncPostBackTriggers referencing other controls like buttons.

Is the implecation here that we no longer need these controls to participate in that VIEWSTATE hidden field? I have a rather large TreeView control in an update panel and it is in fact updated when its trigger is hit. I then use the "SelectedNodeChanged" event from the tree control to update some other UpdatePanel. And I've taken the TreeView off the VIEWSTATE... When I then click one of the nodes in the TreeView, the TreeView disappears and the panel I expect to be updated isnt. But if I put the TreeView back in the VIEWSTATE list, everything works - it just takes so dog-gone long for the page to load... So what's the relationship between all these UpdatePanels and the VIEWSTATE?

Curt

Treeview is not actually supported within update panels and thus may be the source of your frustration...