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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Attributes["onchange"]

Attributes["onchange"]

Scheduled Pinned Locked Moved ASP.NET
csharpasp-net
3 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.
  • S Offline
    S Offline
    sangramkp
    wrote on last edited by
    #1

    Hi, I am using Dunda's Charts in my asp.net application. I want to refresh two charts on selectedindexchanged event of a dropdown ddlmovie. I have written the code: if (!IsPostBack) { ScriptManager1.RegisterAsyncPostBackControl(ddlMovie); ddlMovie.Attributes["onchange"] = Chart1.CallbackManager.GetCallbackEventReference("ddlMovie", "NA"); ddlMovie.Attributes["onchange"] = Chart2.CallbackManager.GetCallbackEventReference("ddlMovie", "NA"); } But it refreshes the chart2 only.. i want to refresh both the charts... Any solution... :rose:

    Sangram (A battle with self) Life is simple, we are the ones makes the living difficult

    M S 2 Replies Last reply
    0
    • S sangramkp

      Hi, I am using Dunda's Charts in my asp.net application. I want to refresh two charts on selectedindexchanged event of a dropdown ddlmovie. I have written the code: if (!IsPostBack) { ScriptManager1.RegisterAsyncPostBackControl(ddlMovie); ddlMovie.Attributes["onchange"] = Chart1.CallbackManager.GetCallbackEventReference("ddlMovie", "NA"); ddlMovie.Attributes["onchange"] = Chart2.CallbackManager.GetCallbackEventReference("ddlMovie", "NA"); } But it refreshes the chart2 only.. i want to refresh both the charts... Any solution... :rose:

      Sangram (A battle with self) Life is simple, we are the ones makes the living difficult

      M Offline
      M Offline
      Malcolm Smart
      wrote on last edited by
      #2

      The the help forums on the dundas website... http://support.dundas.com/forum/[^]

      "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

      "This time yesterday, I still had 24 hours to meet the deadline I've just missed today."

      1 Reply Last reply
      0
      • S sangramkp

        Hi, I am using Dunda's Charts in my asp.net application. I want to refresh two charts on selectedindexchanged event of a dropdown ddlmovie. I have written the code: if (!IsPostBack) { ScriptManager1.RegisterAsyncPostBackControl(ddlMovie); ddlMovie.Attributes["onchange"] = Chart1.CallbackManager.GetCallbackEventReference("ddlMovie", "NA"); ddlMovie.Attributes["onchange"] = Chart2.CallbackManager.GetCallbackEventReference("ddlMovie", "NA"); } But it refreshes the chart2 only.. i want to refresh both the charts... Any solution... :rose:

        Sangram (A battle with self) Life is simple, we are the ones makes the living difficult

        S Offline
        S Offline
        SABhatti
        wrote on last edited by
        #3

        it is because the way you arr adding onchange (only second onchange will occur) try this if (!IsPostBack) { ScriptManager1.RegisterAsyncPostBackControl(ddlMovie); ddlMovie.Attributes["onchange"] = refreshCharts(); } private void refreshCharts() { Chart1.CallbackManager.GetCallbackEventReference("ddlMovie", "NA"); Chart2.CallbackManager.GetCallbackEventReference("ddlMovie", "NA"); }

        -----

        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