BrowserScripterSample.zip (14.13 KB)
The above file contains three scripts that might come is handy for you. They are very easy to use. Notice in the class the use of the “@” symbol to maintain text formatting as it is in the .cs file (The string values are not indented ideally for C# because the exact formatting is maintained in JavaScript, and that is coooool).
The example web form will explain the rest. You can pass a string value as client id or pass a control to the enter key capture method. The resulting code will execute that controls click event. If you pass an empty string, you will simply cancel the enter key press for the form.
Enjoy!