G
Guest
Hi,
I am implementing a ASP.Net form that have ValidationSummary. I want to have
different color for an error message (red) and a warning message (blue).
It seems that we cannot have multiple message color in a ValidationSummary so,
I try with two ValidationSummary controls, one that have a forecolor=red and
the other that have forecolor=blue. But the message that I produce is
displaying in both of the controls.
Sample :
If TextBox2.Text = "" Then
ValidationSummaryInfo.Page.Validators.Add(New val("warning"))
If TextBox1.Text = "" Then
ValidationSummaryErr.Page.Validators.Add(New val("error"))
Where "val" is a class that implements IValidator.
Any idea ?
Thanks in advance !
I am implementing a ASP.Net form that have ValidationSummary. I want to have
different color for an error message (red) and a warning message (blue).
It seems that we cannot have multiple message color in a ValidationSummary so,
I try with two ValidationSummary controls, one that have a forecolor=red and
the other that have forecolor=blue. But the message that I produce is
displaying in both of the controls.
Sample :
If TextBox2.Text = "" Then
ValidationSummaryInfo.Page.Validators.Add(New val("warning"))
If TextBox1.Text = "" Then
ValidationSummaryErr.Page.Validators.Add(New val("error"))
Where "val" is a class that implements IValidator.
Any idea ?
Thanks in advance !