Exemple #1
0
        public void Render()
        {
            CustomValidatorTestClass c;
            TextBox t;

            c = new CustomValidatorTestClass();
            StartValidationTest(c);
            t = SetValidationTextBox("textbox", "3");
            c.Validate();
            c.ErrorMessage    = "aw shucks";
            c.Display         = ValidatorDisplay.Static;
            c.Enabled         = true;
            c.EnableViewState = true;


            c.ClientValidationFunction = "Father to a sister of thought";
        }
        public void Render()
        {
            CustomValidatorTestClass c;
            TextBox t;

            c = new CustomValidatorTestClass();
            StartValidationTest(c);
            t = SetValidationTextBox("textbox", "3");
            c.Validate();
            c.ErrorMessage    = "aw shucks";
            c.Display         = ValidatorDisplay.Static;
            c.Enabled         = true;
            c.EnableViewState = true;

#if !NET_2_0
            Assert.AreEqual("<span style=\"color:Red;\">aw shucks</span>", c.Render(), "R1");
#endif

            c.ClientValidationFunction = "Father to a sister of thought";
#if !NET_2_0
            Assert.AreEqual("<span style=\"color:Red;\">aw shucks</span>", c.Render(), "R2");
#endif
        }
Exemple #3
0
		public void Render () {
			CustomValidatorTestClass	c;
			TextBox				t;

			c = new CustomValidatorTestClass();
			StartValidationTest(c);
			t = SetValidationTextBox("textbox", "3");
			c.Validate();
			c.ErrorMessage = "aw shucks";
			c.Display = ValidatorDisplay.Static;
			c.Enabled = true;
			c.EnableViewState = true;

#if! NET_2_0
			Assert.AreEqual("<span style=\"color:Red;\">aw shucks</span>", c.Render(), "R1");
#endif

			c.ClientValidationFunction = "Father to a sister of thought";
#if! NET_2_0
			Assert.AreEqual("<span style=\"color:Red;\">aw shucks</span>", c.Render(), "R2");
#endif
		}
		public void Render () {
			CustomValidatorTestClass	c;
			TextBox				t;

			c = new CustomValidatorTestClass();
			StartValidationTest(c);
			t = SetValidationTextBox("textbox", "3");
			c.Validate();
			c.ErrorMessage = "aw shucks";
			c.Display = ValidatorDisplay.Static;
			c.Enabled = true;
			c.EnableViewState = true;


			c.ClientValidationFunction = "Father to a sister of thought";
		}