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. textbox values clears

textbox values clears

Scheduled Pinned Locked Moved ASP.NET
sysadminhelpannouncement
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.
  • M Offline
    M Offline
    member27
    wrote on last edited by
    #1

    Hi all, Iam using a hidden textbox in my form...when i update the value of the Hidden textbox in server side - when i check a checkbox , and i take the value of textbox in client side in a button click . The value of the textbox reamins empty qwhen i take the value in client side client side code:: var str= document.getElementById("Hdncode").value; when i update the value of textbox in clent side it takes but when i update thro server side it not updating ... in myForm i didnt wrote any code to clear the textbox value any wer then y it happens any reason .. can any one help me

    J 1 Reply Last reply
    0
    • M member27

      Hi all, Iam using a hidden textbox in my form...when i update the value of the Hidden textbox in server side - when i check a checkbox , and i take the value of textbox in client side in a button click . The value of the textbox reamins empty qwhen i take the value in client side client side code:: var str= document.getElementById("Hdncode").value; when i update the value of textbox in clent side it takes but when i update thro server side it not updating ... in myForm i didnt wrote any code to clear the textbox value any wer then y it happens any reason .. can any one help me

      J Offline
      J Offline
      Jagz W
      wrote on last edited by
      #2

      post your server side code for better understanding

      One person's data is another person's program. --J.Walia

      M 1 Reply Last reply
      0
      • J Jagz W

        post your server side code for better understanding

        One person's data is another person's program. --J.Walia

        M Offline
        M Offline
        member27
        wrote on last edited by
        #3

        This is the server side code for check changed Private Sub chkselallitems_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles chkselallitems.CheckedChanged dim str as string For i = 0 To grdexam.Rows.Count - 1 str+= grdexam.Rows(i).Cells(1).Value & "," next hdncode.value=str End Sub when i updatethe hdncode.value in server side it is not reflecting if i take in client side can any one tell the reason

        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