Dynamicly change ValueToCompare on a CompareValidator

Discussion in 'ASP .Net' started by Henke, Feb 26, 2004.

  1. Henke

    Henke Guest

    Hi!
    Is there a way to change the value of the ValueToCompare property at
    runtime, on the client side that is?
    I tried this:
    compValidator.ValueToCompare = 1050;
    Page_ClientValidate();

    Although the value gets changed on the compareValidator ,I know it by
    alert(compValidator.CalueToCompare), the validation doesn't work.
    It seams like it's the design time value that gets compared to.

    Isn't it possible to change it dynamicly?

    Thanks!
    /Henke
     
    Henke, Feb 26, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sjaakie Helderhorst

    Ivoking comparevalidator

    Sjaakie Helderhorst, Feb 25, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    344
    Sjaakie Helderhorst
    Feb 25, 2004
  2. =?Utf-8?B?ZG90bmV0IGJlZ2lubmVy?=

    CompareValidator and Autopostback

    =?Utf-8?B?ZG90bmV0IGJlZ2lubmVy?=, Apr 13, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    548
    =?Utf-8?B?ZG90bmV0IGJlZ2lubmVy?=
    Apr 13, 2004
  3. EMW
    Replies:
    2
    Views:
    4,546
    Eliyahu Goldin
    Nov 7, 2005
  4. Replies:
    1
    Views:
    371
    GArlington
    Jul 1, 2008
  5. Leoa
    Replies:
    4
    Views:
    133
Loading...

Share This Page