Friday, 24 August 2012

Pass Dynamic Parameter to Java script from asp.net code behind page

How to Pass Parameter to javascript from asp.net code behind page


In Your design Page
do like
 <script type="text/javascript">
       

          var Id = '<%= ID %>';
         
          //logic goes here

    </script>



In Your code behind page

  public string ID
        { get { return Parametervalue} }

//Pass Parameter value here

string Parametervalue="";

No comments:

Post a Comment