Problem accessing repeater control.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nitinkcv
    New Member
    • Mar 2007
    • 65

    #1

    Problem accessing repeater control.

    Hi all,

    Currently im using 1.1 framework. Here i have a textbox which is inside a repeater. Now the functionality of this textbox is to take the input from

    the usr regarding the available time present in %. So on submit of a the save button it should check if the sum total of the values in these checkbox is less than 100 if not an alert should be given. I want to do the validation usingJavascript . but my problem is how to access the individual values of the textbox.

    Like the problem is the textbox with id say txtTime is being repeatedly being used. For example the same textbox is being rendered around 7 times.

    so inside my javascript how can i access the values of the textbox in the repeater. i hope i have made myself clear.

    Thanks
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Have you tried using an input control?

    Comment

    • Nitinkcv
      New Member
      • Mar 2007
      • 65

      #3
      Could u please include some sample codes please.

      Thanks

      Comment

      • radcaesar
        Recognized Expert Contributor
        • Sep 2006
        • 759

        #4
        Here is urs,

        http://www.thescripts. com/forum/thread341384.ht ml

        Don't try to ask code snippets without any try.

        :)

        Comment

        • Nitinkcv
          New Member
          • Mar 2007
          • 65

          #5
          Hi,

          Thanks for the link. Its really helpful for the code behind part. However how can i
          actually loop through to get the values of the 7 textboxes from the javascript.

          Thanks.

          Comment

          Working...