problem with ajax dropdownbox
-
i am putting a dropdownbox in a ajax updatepanel and loading data in that dropdown box.i want to display the selected data in atextbox . it's taking time to display it in textbox,ie;more than 5 minitues.how can i solve this
I believe the ASP.NET AJAX stuff does a full page postback to do the AJAX call. Set some breakpoints and work out where the bottleneck is, then work out if it's something you can work around.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
I believe the ASP.NET AJAX stuff does a full page postback to do the AJAX call. Set some breakpoints and work out where the bottleneck is, then work out if it's something you can work around.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
i am putting a dropdownbox in a ajax updatepanel and loading data in that dropdown box.i want to display the selected data in atextbox . it's taking time to display it in textbox,ie;more than 5 minitues.how can i solve this
anujose wrote:
i want to display the selected data in atextbox . it's taking time to display it in textbox,ie;more than 5 minitues.
What operation you are doing to take more than 5minutes for loading data ?
-
i am new in ajax.can anyone tell me what i can do to solve the problem?.it is urgent......
-
i am new in ajax.can anyone tell me what i can do to solve the problem?.it is urgent......
I told you, based on the information you gave us, there's not much else I can say. And, you're not really using AJAX, you're using a Microsoft library which does AJAX for you. This probably limits your access to information that allows you to do debugging or to control the process. You can set breakpoints in your code, and you can see what code is taking that long. We sure as hell can't tell you what code is taking that long, we've not even seen your code.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
anujose wrote:
i want to display the selected data in atextbox . it's taking time to display it in textbox,ie;more than 5 minitues.
What operation you are doing to take more than 5minutes for loading data ?
i have a dropdownbox and a textbox .both controls i put in update panel and i am loading the dropdown box during page load.after that when i select a data from dropdown list it is displaying in the Textbox.to display data in textbox is taking time. ithis is the code i am writing in codebehing file using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack) { for (int i = 0; i < 4000; i++) { DropDownList1.Items.Add("asdds" + i); } } } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { TextBox1.Text = DropDownList1.SelectedItem.Text; } } nothing else i am doing... i have installed ASPAJAXExtSetup and i am taking aspnet-ajaxenabled website application
-
i have a dropdownbox and a textbox .both controls i put in update panel and i am loading the dropdown box during page load.after that when i select a data from dropdown list it is displaying in the Textbox.to display data in textbox is taking time. ithis is the code i am writing in codebehing file using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack) { for (int i = 0; i < 4000; i++) { DropDownList1.Items.Add("asdds" + i); } } } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { TextBox1.Text = DropDownList1.SelectedItem.Text; } } nothing else i am doing... i have installed ASPAJAXExtSetup and i am taking aspnet-ajaxenabled website application
anujose wrote:
if(!IsPostBack) { for (int i = 0; i < 4000; i++) { DropDownList1.Items.Add("asdds" + i); } }
OK, so this is obviously test code. What happens if you set breakpoints in this code ? I'd assume the AJAX calls count as a postback, but it's worth checking. If you set your breakpoint in index changed event, does it fire right away, or after the 5 minutes ? This is the sort of thing you need to be doing, in order to work out where the problem lies.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
anujose wrote:
if(!IsPostBack) { for (int i = 0; i < 4000; i++) { DropDownList1.Items.Add("asdds" + i); } }
OK, so this is obviously test code. What happens if you set breakpoints in this code ? I'd assume the AJAX calls count as a postback, but it's worth checking. If you set your breakpoint in index changed event, does it fire right away, or after the 5 minutes ? This is the sort of thing you need to be doing, in order to work out where the problem lies.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
when i am selecting a data the ispostback event is working properly.But when it comes to selected index changed event the code protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { TextBox1.Text = DropDownList1.SelectedItem.Text;-> this much is working fine. but when it comes to } here it's taking time
-
when i am selecting a data the ispostback event is working properly.But when it comes to selected index changed event the code protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { TextBox1.Text = DropDownList1.SelectedItem.Text;-> this much is working fine. but when it comes to } here it's taking time
OK - it seems to me then that you're hitting something to do with the framework itself. It does seem odd. I don't use the MS library myself, so I really don't know what could cause this. I will say that if you wrote your own AJAX code, you'd have a lot more control over what was happening.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )