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. AJAX UpdatePanel related

AJAX UpdatePanel related

Scheduled Pinned Locked Moved ASP.NET
databasehelpannouncement
3 Posts 2 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.
  • L Offline
    L Offline
    larree11
    wrote on last edited by
    #1

    Good day to all, I have a few panels control inside one UpdatePanel (AJAX extension), these items have drag and drop features, upon dragging these panels and dropping them at a different location, a webservice will be called from client side to update the new location of the panel in the database. The problem now is I have another dropdownlist outside this UpdatePanel which is databind. Whenever the location of any panel is dragged and moved to a new location, the item in the dropdownlist should be different as it uses a stored procedure which is somehow link to the above attribute. The problem I'm facing now is that I'm unable to update the dropdownlist by using the ddltest.DataBind() unless I reload the whole page instead of using an UpdatePanel. I'm quite new to AJAX so feel free to correct me on my misconcept and advise me on how should I tackle this problem. Thanks in advance Cheers

    V 1 Reply Last reply
    0
    • L larree11

      Good day to all, I have a few panels control inside one UpdatePanel (AJAX extension), these items have drag and drop features, upon dragging these panels and dropping them at a different location, a webservice will be called from client side to update the new location of the panel in the database. The problem now is I have another dropdownlist outside this UpdatePanel which is databind. Whenever the location of any panel is dragged and moved to a new location, the item in the dropdownlist should be different as it uses a stored procedure which is somehow link to the above attribute. The problem I'm facing now is that I'm unable to update the dropdownlist by using the ddltest.DataBind() unless I reload the whole page instead of using an UpdatePanel. I'm quite new to AJAX so feel free to correct me on my misconcept and advise me on how should I tackle this problem. Thanks in advance Cheers

      V Offline
      V Offline
      Venk259
      wrote on last edited by
      #2

      Hi larree11 You can also place the dropdownlist inside the UpdatePanel. You have one updatepanel which contains a few panels. So whenever panel is drag and dropped you want to update the dropdownlist, so better, you place the dropdownlist box inside the updatepanel and in the drag and drop features update the dropdownlist values. I think this will help you to resolve your problem

      L 1 Reply Last reply
      0
      • V Venk259

        Hi larree11 You can also place the dropdownlist inside the UpdatePanel. You have one updatepanel which contains a few panels. So whenever panel is drag and dropped you want to update the dropdownlist, so better, you place the dropdownlist box inside the updatepanel and in the drag and drop features update the dropdownlist values. I think this will help you to resolve your problem

        L Offline
        L Offline
        larree11
        wrote on last edited by
        #3

        Hi Venk259, First thanks for the reply... I did try this method before but the dropdownlist did not reload with fresh data whenever i drag and drop a panel. I have set the dropdownlist autopostback to true but its not refreshing. Any idea why is it like tat? by the way the web service called by the drag and drop is done on client side by calling the webservice using javascript. Any work around? Cheers

        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