Friday 22 June 2012

How to Call Method Or Function Or Button From Java Script

Call Method Or Function Or Button From Java Script

                    Actually we can call button from java script and it will lead the post back also 

 Example  :

          First Add This Property to the Page Directory

                        EnableEventValidation="false"

      here:



      
      1) when click on button or any control call java script as below
                
              

       2) the Java script function :


       3) this OK button place in the page like this



       4) so the button OK will call in server side:



         Like this we can call Method Or Function Or Button From Java Script