Manage Required Field Validator with enableclientscript="False" http://forums.asp.net/t/1798528.aspx/1?Manage+Required+Field+Validator+with+enableclientscript+False+Wed, 02 May 2012 13:31:05 -040017985284958510http://forums.asp.net/p/1798528/4958510.aspx/1?Manage+Required+Field+Validator+with+enableclientscript+False+Manage Required Field Validator with enableclientscript="False" <p>Unfortunately i have to set enableclientscript=&quot;False&quot; because of Ajax problem. So now, how may i handle the validation? The validation wont work anymore...</p> <p>My code:</p> <p>&lt;asp:ValidationSummary ID=&quot;ValidationSummary1&quot; HeaderText=&quot;Please correct the following:&quot; ShowMessageBox=&quot;true&quot; ShowSummary=&quot;false&quot; runat=&quot;server&quot; EnableClientScript=&quot;False&quot;/&gt;</p> <p>&lt;asp:TextBox ID=&quot;txtNewLocationName&quot; runat=&quot;server&quot; MaxLength=&quot;50&quot; /&gt;<br> &lt;asp:RequiredFieldValidator runat=&quot;server&quot; ID=&quot;rfvNewLocationName&quot; Display=&quot;None&quot;<br> ControlToValidate=&quot;txtNewLocationName&quot; ErrorMessage=&quot;Location Name is required.&quot; /&gt;</p> 2012-04-30T15:32:56-04:004958686http://forums.asp.net/p/1798528/4958686.aspx/1?Re+Manage+Required+Field+Validator+with+enableclientscript+False+Re: Manage Required Field Validator with enableclientscript="False" <p>hi ,</p> <p>you will be submitting the entered text values in some button event</p> <p>check if the textbox value is greater than 0 in that event</p> <p>else throw error message</p> <p>Location is required</p> <p>Regards,</p> <p>Charan</p> 2012-04-30T17:38:07-04:004959227http://forums.asp.net/p/1798528/4959227.aspx/1?Re+Manage+Required+Field+Validator+with+enableclientscript+False+Re: Manage Required Field Validator with enableclientscript="False" <p>The EnableClientScript property is for a client side validation. The control itself uses server side validation so it sounds like it is working how it should. If you have a textbox that is optional then I would remove that RequiredFieldValidator. No point in mandating a field is to be filled out if it is optional.</p> <p>Validation controls always perform validation on the server. They also have complete client-side implementation that allows DHTML-supported browsers (such as Microsoft Internet Explorer 4.0 and later) to perform validation on the client. Client-side validation enhances the validation process by checking user input before it is sent to the server. This allows errors to be detected on the client before the form is submitted, avoiding the round trip of information necessary for server-side validation.</p> 2012-05-01T05:14:56-04:004961995http://forums.asp.net/p/1798528/4961995.aspx/1?Re+Manage+Required+Field+Validator+with+enableclientscript+False+Re: Manage Required Field Validator with enableclientscript="False" <p>I could not figure out how to show my messages in message box but it worked to write the error messages near wrong content.</p> 2012-05-02T13:31:05-04:00