Last post Nov 18, 2009 10:57 AM by Pawan_Mishra
Mar 24, 2007 01:07 AM|SMuhilan|LINK
I designed a small project. In this project I have two aspx form and one usercontrol.
3. uctrItemSearch.ascx - usercontrol
In the usercontrol, I have a html listbox control with runat server (lstItemSelected) and visible =false and a IFrame with src=formitemsearch.aspx. a button called CLOSE for setting visible =false and also raise the event called btnclicked
formItemSearch.aspx contians a text box ( for item name), a button (for search) and a gridview control with a check box column.
The gird will display data as per the item name given in the text box when search button clicked.
Below this grid, I have two more buttons (Down , Up) and a grid witch checkbox.
User will select the items in the first gridview by checking checkboxes. then they press down for pushing items to second gridview. Up is used for deleting checked row in the second row.
I have a html listbox control with runat server (lstItemSelected) and visible =false. I fill this list box whenever there is a change in the second grid.
The entire form is in updatepanel with conditionaly postback, the updatepanel assyncpostbacktriggers are the down, up, search click events.
I called the above method on the click of down and up button using scriptmanager.registerscript method.
formItemSelected.aspx contains a button and a grid view control.
When I click, the button, the usercontrol will display and user can search the items and select the items, when the press CLOSE button in the usercontrol, this usercontrol is hidden and the I display the data in the grid by reading lstselecteditem of the usercontrol.
My problem is all the functions are running fine, in my development PC with fast. But while on production Server, it works fine but pushing from upper gridview to lower grid is slow.
The items are not more than 10.
I put scriptmanager script mode=release and also commenting the javacript method calling from the server side. But no use. Its still takes the same amount of time.
I didn't install AJAX on my server since it is shared one.
Why generaly AJAX 1.0 is very very slow on Production server and fast in the local development PC.
replay to me.
AJAX .NET 1.0 Slow
Mar 24, 2007 06:16 AM|spvlong|LINK
Make sure that
is in your web.config. This will improve AJAX performance a lot.
Hope this helps,
Mar 26, 2007 07:18 AM|SMuhilan|LINK
Thanks for your reply.
I already try this option also. But no improvement.
Is it necessary to install AJAX framework in our Webserver?
Mar 26, 2007 09:24 AM|spvlong|LINK
The ASP.Net AJAX Extensions must be installed before you can run your AJAX application. Your application is running now so I don't think that you need to reinstall the ASP.Net AJAX Extensions.
Mar 28, 2007 10:26 AM|SMuhilan|LINK
Is there any solution for my problem?
Jun 21, 2007 12:17 PM|jungleboy6|LINK
Did you ever find an answer....same issue here too.
Jul 19, 2007 11:39 AM|bobthecoder|LINK
mmm, I have the opposite problem. Possibly worthy of a new thread but could be the same cause - but just machine based. I'm finding moving something between grids takes less than 2 seconds in production and my production server is 2500km away, whereas working
on my localhost takes about 8 seconds and its all on my laptop, which isn't quite as fast as the production server, but its not normally this slow. Both are win2k3 and same data and database. I've tried setting scriptsmanager to release mode and turning off
debug but no difference. It makes development a bit slower and more painful but at least its going to work in production. Wish I knew what was going on here.
When I run perfmon on local machine when running app locally the CPU goes nuts. However when I view the perfmons for server and local host while viewing the production server, its pretty much flat line. So I don't know what it is about the site that is causing
my local CPU to work overtime. It doesn't seem to be the rendering. Unless there is some kind of contention going on my laptop
Jul 19, 2007 05:20 PM|KaziManzurRashid|LINK
Just make sure you have the following setting in web.config when deploying in production server:
<scriptResourceHandler enableCompression="true" enableCaching="true"/>
Oct 07, 2007 05:11 AM|power9888|LINK
I have the same issue here. Ajax in .net runs very very slow. The setting in web.config
does no help at all.
Any other suggestion to resolve this issue?
Oct 07, 2007 04:32 PM|Luis Abreu|LINK
Nov 18, 2009 08:36 AM|Das.Sandeep|LINK
This is not the case respective to lots of elements,I have tried with only single element of text box and button then also it is very slow. This issue is source stopper for us.
Nov 18, 2009 10:57 AM|Pawan_Mishra|LINK
In case you are not able to figure out whats slowing down your applications then you can make use of various browser plug-ins like fiddler , firebug , YSlow etc to analyze the performance of your webpage.One such plug-in for firefox is called "PageSpeed"
, you can check out for more details on my blog :-