Jquery ajax binding to c# simple method.
Hello All,
I am got stucked at one point..
I am performing an operation of passing my method to aspx page. Like as follow..
url: "Employee.aspx?callmethod=addEmpData"
addEmpData is my static method on Employee.aspx page. I dont want to use web method concept here.
Now i want to pass parameters to this method from jquery to c# page like as follow:
var EmpParam = {
Name: $('#dataDiv').find('#Name').val(),
Address: $('#dataDiv').find('#Address').val(),
ContactNo: $('#dataDiv').find('#ContactNo').val()
}
data: "{'myEmpData':'" + JSON.stringify(EmpParam) + "'}"
So how to access this parameter in my method?
I have passed method to the c# page using query string as I mentioned above.
But how to get this parameter of that method in my method in c# page.??
Please reply as soon as possible.
Thank u in advance.