innerHTMLs's value not saved

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mohitkatariya
    New Member
    • Apr 2007
    • 26

    innerHTMLs's value not saved

    i am using labels for storing subtotals in datalist control which are successfully calculated and showed in labels using javascript's innerHTML property. But When i press button(server control) for calculating Grand Total then the values of those labels are not retrived and it started showing previous values of label control.
    Can anyone tell me what i can do to retrive label value, i think i am using innerhtml property to change label's value so may be it is not saving its value.
    Thanks....
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    It may be that your values are updating, how are you populating the datalist?

    Comment

    • mohitkatariya
      New Member
      • Apr 2007
      • 26

      #3
      I am Using Nested datalist but the labels which I am updating using javascript are in root datalist. Values are successfully updating but if I click on server control(Button) label restore its previous values but i want its updated value.
      Originally posted by kenobewan
      It may be that your values are updating, how are you populating the datalist?

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        Thats my point, if the datalist isnt being updated then you wont get the updated values. HTH.

        Comment

        • mohitkatariya
          New Member
          • Apr 2007
          • 26

          #5
          I mean Label's text is updating successfully in datalist and it is showing proper result in datalist, as i am using javascript to update these labels text by using innerhtml property, so i want these values to store in database but if i click button(server control) to save the values of that labels, they are lost and datalist starts showing previous values, that may be because i had updated labels value with innerHTML??
          Originally posted by kenobewan
          Thats my point, if the datalist isnt being updated then you wont get the updated values. HTH.

          Comment

          • kenobewan
            Recognized Expert Specialist
            • Dec 2006
            • 4871

            #6
            You have to connect to a database for this to happen, otherwise you are just dealing with a disconnected datalist. HTH.

            Comment

            Working...