Posted on: 4/22/2015 10:47:37 PM | Views : 581

I am trying to validate if the data is entered in the textbox before the page is posted to the server and if there is data then display alert box "Do you want to submit?"
Using RequiredFieldValidator to validate the textbox but it is not displaying the error message.
This page is generated from the master page.
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> <script type="text/javascript"> function Validate() { if (Page_ClientValidate("save")) return("are you sure you want to submit?") </script> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="PageContent" runat="server"> <asp:RequiredFieldValidator ID="rvCheckDate" runat="server" ErrorMessage="Date is required ...

Go to the complete details ...