Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. problem with ajax dropdownbox

problem with ajax dropdownbox

Scheduled Pinned Locked Moved ASP.NET
helpquestion
10 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anujose
    wrote on last edited by
    #1

    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

    C N 2 Replies Last reply
    0
    • A anujose

      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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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 )

      A 1 Reply Last reply
      0
      • C Christian Graus

        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 )

        A Offline
        A Offline
        anujose
        wrote on last edited by
        #3

        i am new in ajax.can anyone tell me what i can do to solve the problem?.it is urgent......

        N C 2 Replies Last reply
        0
        • A anujose

          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

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          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 ?


          My Website | Ask smart questions

          A 1 Reply Last reply
          0
          • A anujose

            i am new in ajax.can anyone tell me what i can do to solve the problem?.it is urgent......

            N Offline
            N Offline
            N a v a n e e t h
            wrote on last edited by
            #5

            anujose wrote:

            .it is urgent......

            :mad: It doesn't matter


            My Website | Ask smart questions

            1 Reply Last reply
            0
            • A anujose

              i am new in ajax.can anyone tell me what i can do to solve the problem?.it is urgent......

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              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 )

              1 Reply Last reply
              0
              • N N a v a n e e t h

                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 ?


                My Website | Ask smart questions

                A Offline
                A Offline
                anujose
                wrote on last edited by
                #7

                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

                C 1 Reply Last reply
                0
                • A anujose

                  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

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  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 )

                  A 1 Reply Last reply
                  0
                  • C Christian Graus

                    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 )

                    A Offline
                    A Offline
                    anujose
                    wrote on last edited by
                    #9

                    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

                    C 1 Reply Last reply
                    0
                    • A anujose

                      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

                      C Offline
                      C Offline
                      Christian Graus
                      wrote on last edited by
                      #10

                      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 )

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups