hi
I designed a small project. In this project I have two aspx form and one usercontrol.
1. formItemSelected.aspx
2. formItemSearch.aspx
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 have a javascript method called LoadSelectedItem() which will fill all the items from lstItemSelected into usercontrol's lstItemSelected listbox.
function LoadSelectedItem()
{
var List1=document.getElementById("lstItemSelected");
var List2=parent.document.getElementById("LookUpControl_lstItemSelected");
while(List2.options.length>0)
{
var i=0;
List2.remove(i);
}
for(i=0;i<List1.options.length;i++)
{
var option1=document.createElement("OPTION");
option1.text=List1.options[i].text;
option1.value=List1.options[i].value;
option1.selected=
true;
List2.add(option1);
}
}
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.
Why?
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.
Very urgent.
replay to me.
S. Muhilan
Mumbai, India