I have some good examples in my next article:
Advanced ASPX GridView Pagination and Data Entities[
^]
Read the article first, then look also in the source code at the method _
saveButton_Click()
of the class
ContactPage
.
In your master page (or page layout) or page you have to include the refrenece to your .js file like in the next example:
<script src="/Scripts/config.js" type="text/javascript"></script>