Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
How to call a server side method with custom parameters.
Praveen Raveendran
Jun 2 2014 2:20 AM
762
Reply
How to call a server side method with custom parameters as inputs via jquery ajax functionality?
public class Employee
{
public int ID { get; set; }
public string Name { get; set; }
}
[WebMethod]
public static void AddEmployee(Employee employee)
{
//Some logic
}
In my design I have two textboxes for inputting ID and Name of the employee. On clicking the button I need to invoke the method
AddEmployee
.
How can I pass the values to the WebMethod
AddEmployee
via jquery ajax?
Please mention a solution for these kind of scenarios.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
jquery
Javascript Function comparing issue