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. Server control value is not changing in clientside

Server control value is not changing in clientside

Scheduled Pinned Locked Moved ASP.NET
javascriptsysadminhelp
4 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.
  • P Offline
    P Offline
    Pothirajan C
    wrote on last edited by
    #1

    I have one server control in my ASPX page. I am changing the value of this text box in Javascript. But when the page is posted back it is not taking the values which I assigned in the client side code. Could anybody help me on this. Thanks in Advance, Pothiraj Hard work never fails

    A 1 Reply Last reply
    0
    • P Pothirajan C

      I have one server control in my ASPX page. I am changing the value of this text box in Javascript. But when the page is posted back it is not taking the values which I assigned in the client side code. Could anybody help me on this. Thanks in Advance, Pothiraj Hard work never fails

      A Offline
      A Offline
      Alsvha
      wrote on last edited by
      #2

      Are you setting the (original) value again in page-load or similar, which could overwrite the submitted value? --------------------------- 127.0.0.1 - Sweet 127.0.0.1

      A 1 Reply Last reply
      0
      • A Alsvha

        Are you setting the (original) value again in page-load or similar, which could overwrite the submitted value? --------------------------- 127.0.0.1 - Sweet 127.0.0.1

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

        I am setting the value only once in the page-load by checking IsPostBack condition as false.In the clientside only I am changing the value of that control.But when that page is posted back, it is not retaining the values which I assigned in the client side. Waiting for ur reply,

        A 1 Reply Last reply
        0
        • A Anonymous

          I am setting the value only once in the page-load by checking IsPostBack condition as false.In the clientside only I am changing the value of that control.But when that page is posted back, it is not retaining the values which I assigned in the client side. Waiting for ur reply,

          A Offline
          A Offline
          Alsvha
          wrote on last edited by
          #4

          If you are changing the value clientside - are you then sure you get it submitted on postback? Try checking the Form object as the first thing on page load, and see if the value is "there" or not. If it isn't, then try making an input field (hidden or what not) and placing the value there, and then pulling it out again. (sorry - if I don't make sences, but I'm not that terrible experienced (yet) ;)) --------------------------- 127.0.0.1 - Sweet 127.0.0.1

          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