Friday, September 9, 2011

Working with Java Script in code behind

There are two ways to add a java script function in to a Controller. But those behaviors are different to each other.
1. Run in ScriptManager   
          This is the best way to implement the java_script into code behind of This can run when we want functionality.
2. Add attributes
            This is not a perfect way. When we add to button, which trigger, after the button click. That mean is you must click twice that button and you can't change that functionality in direct.

No comments:

Post a Comment