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. update panel problem

update panel problem

Scheduled Pinned Locked Moved ASP.NET
javascripthelpquestionannouncement
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.
  • A Offline
    A Offline
    Abhishek Rana
    wrote on last edited by
    #1

    I am developing a web application in which i have used a dropdown list on which update panel is applied ,and on list select event I'll set some cs file variable values that are not visible on my javascript function all though the values of cs variable getchanged is there any way to solve these problem ? thanks

    Y 1 Reply Last reply
    0
    • A Abhishek Rana

      I am developing a web application in which i have used a dropdown list on which update panel is applied ,and on list select event I'll set some cs file variable values that are not visible on my javascript function all though the values of cs variable getchanged is there any way to solve these problem ? thanks

      Y Offline
      Y Offline
      Yusuf
      wrote on last edited by
      #2

      either you have no clue of what you doing or you did not explain your problem.

      Abhishek Rana wrote:

      I am developing a web application in which i have used a dropdown list on which update panel is applied

      So far so good

      Abhishek Rana wrote:

      and on list select event I'll set some cs file variable values that are not visible on my javascript function

      If all you want to do is handle the select changed event in javascript, why do you need updatepanel? Update panel is used/needed only if you have to process the event on the server, so you don't refresh the whole page.

      Abhishek Rana wrote:

      on list select event I'll set some cs file variable values that are not visible on my javascript function all though the values of cs variable getchanged

      No there is no way you can access the variables from javascript.

      Abhishek Rana wrote:

      is there any way to solve these problem ?

      Yes, Since you have update panel, forget about javascript and handle what ever you want on the server. Things will work for you magically.

      Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

      T 1 Reply Last reply
      0
      • Y Yusuf

        either you have no clue of what you doing or you did not explain your problem.

        Abhishek Rana wrote:

        I am developing a web application in which i have used a dropdown list on which update panel is applied

        So far so good

        Abhishek Rana wrote:

        and on list select event I'll set some cs file variable values that are not visible on my javascript function

        If all you want to do is handle the select changed event in javascript, why do you need updatepanel? Update panel is used/needed only if you have to process the event on the server, so you don't refresh the whole page.

        Abhishek Rana wrote:

        on list select event I'll set some cs file variable values that are not visible on my javascript function all though the values of cs variable getchanged

        No there is no way you can access the variables from javascript.

        Abhishek Rana wrote:

        is there any way to solve these problem ?

        Yes, Since you have update panel, forget about javascript and handle what ever you want on the server. Things will work for you magically.

        Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

        T Offline
        T Offline
        ToddHileHoffer
        wrote on last edited by
        #3

        Yusuf wrote:

        Abhishek Rana wrote: is there any way to solve these problem ? Yes, Since you have update panel, forget about javascript and handle what ever you want on the server. Things will work for you magically.

        Funny. But I agree with Yusuf. Unless you are writing a website that will be very high volume, it is always easist and cleanest to just write your code in C# and use the ajax panel. It is one thing if you are proficient with asp.net, html, javascirpt and it easy for you. But if you are not an expert, don't even bother trying to use a bunch of javascript. You will probably just shoot yourself in the foot.

        I didn't get any requirements for the signature

        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