Wednesday 10 January 2018

(Part-20){Client and Server Side Validation,Range Field Validator in asp...







Jquery Link

copy and paste this code b/w head tag:

 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"  
type="text/javascript"></script>   
<!--include jQuery Validation Plugin-->  
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.12.0/jquery.validate.min.js"  
type="text/javascript"></script>  

calendar hide/show code :

copy and paste this code b/w head tag:

    <script>
    $(document).ready(function ()
    {
        $("#calbtn").click(function ()
        {
            $("#Calendar1").toggle();
    });
});
</script>

Web.config Code :

copy and paste the following code b/w configuration tag :


  <appSettings>
    <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
  </appSettings>

(Part-19){Client and Server Side Validation,Required Field Validator in ...





Jquery Link

  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"  
type="text/javascript"></script>   
<!--include jQuery Validation Plugin-->  
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.12.0/jquery.validate.min.js"  
type="text/javascript"></script>  

web. Config setting :

copy and paste the following code between the configuration tag

 <appSettings>
      <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
    </appSettings>

Pass Dynamically Added Html Table Records List To Controller In Asp.net MVC

Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ...