Hi Peter,
Does it do what you want if you set the validator to display="None" ?
Ken
Microsoft MVP [ASP.NET]
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:textbox id="TextBox2" runat="server"> </asp:textbox>
<asp:requiredfi eldvalidator id="RequiredFie ldValidator1"
runat="server" controltovalida te="TextBox1" display="None"
errormessage="R equiredFieldVal idator"></asp:requiredfie ldvalidator><br />
<br />
<asp:textbox id="TextBox1" runat="server"> </asp:textbox>
<asp:requiredfi eldvalidator id="RequiredFie ldValidator2"
runat="server" controltovalida te="TextBox2"
errormessage="R equiredFieldVal idator"></asp:requiredfie ldvalidator><br />
<br />
<asp:validation summary id="ValidationS ummary1" runat="server" />
<br />
<br />
<asp:button id="Button1" runat="server" text="Button" /></div>
</form>
</body>
</html>
"PeterKelln er" <pk**********@7 3rdstreet.com> wrote in message
news:ap******** *************** *********@4ax.c om...
I'm wanting to just show the error in a ValidationSumma ry control, not
next to the actual TextField I'm putting a RequiredFieldVa lidator next
to. I don't even want the little "*" showing which field it is.
(strange requirement, but that's the way it is).
I've found that if I set the attribute Text="" (zero length string),
it always uses the ErrorMessage instead of Text. I need the
ErrorMessage because that is what is going to show up in the
ValidationSumma ry control.
Any ideas how to force the text to blank right next to the control?
Thanks,
Peter Kellner
http://peterkellner.net