What is a way to gain ASP.NET validation summary control when displaying a header text when there is a verification error? / P>
Actually what I want to display next to the submit button is to have a simple message like "Please mark all fields" as I use the "*" for error messages on assumptions I'm not, I do not want that in the summary
Thanks for any help.
Each validator text will be replaced with "*" and error message < / Strong> to empty string.
& lt; Form id = "form2" runat = "server" & gt; Name: & lt; Br / & gt; & Lt; ASP: Text Box ID = "Nametextbox" Run = "Server" /> & Lt; Asp: RequiredFieldValidator id = "NameTextBoxRequiredValidator" ControlToValidate = "NameTextBox" error message = "" text = "*" runat = "server" /> & Lt; Br / & gt; City: & lt; Br / & gt; & Lt; ASP: Textbox ID = "City Textbox" Run = "Server" /> & Lt; Asp: RequiredFieldValidator ID = "CityTextBoxRequiredValidator" ControlToValidate = "CityTextBox" error message = "" text = "*" runat = "server" /> & Lt; Br / & gt; & Lt; Asp: button id = "submit button" text = "submit" runat = "server" /> & Lt; Hour / & gt; & Lt; ASP: validation beautiful id = "wellsum" displacement = "single paragraph" header text = "please mark all fields *" runat = "server" /> & Lt; / Form & gt;
Comments
Post a Comment