I want to create object on the client side of aspx page. And i want to add functions to these javascript classes to make easier the life.
Actually i can get and use the
Let's simplify this: You have a server side object instance name and a client side object instance name.
In your jQuery ajax - use this form
data: '{"myServerSideObjectInstanceName":' + JSON.stringify(myClientSideObjectInstanceName) + '}',
On the server side use
public void MyWebServiceMethod(myObject myServerSideObjectInstanceName)
{ ... your code here ...}
As long as the myObject has the identical signature as your javascript Object, this will work. You can get your values (on the server) using something like myServerSideObjectInstanceName.StudentName (or whatever).