Hi all,
i havw make a page for user entry..now i'm uisng

<asp:RequiredFieldValidator ID="CmpCode" ErrorMessage="*" runat="server" ControlToValidate="txtCmpCode"></asp:RequiredFieldValidator>

to make a validation but not enough space..

anybody have any suggestion to make a validation rather than diaplay the error message?
i'm thinking about just red bold the textbox but not found yet..
anybody knows?

Recommended Answers

All 2 Replies

What was the problem you are facing . What exactly you need. Can you explain a little bit

You can try setting the property - Display="Dynamic".
Another options you have are:
1: ValidatorCallOut control: http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/ValidatorCallout/ValidatorCallout.aspx

2: Use ValidationSummary control to popout error messages:
http://www.dotnetfunda.com/tutorials/controls/validationsummary.aspx

3: use jquery validation plugin. But this will be client-side only. You still need server-side validation.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.