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