I have form data which i am trying to post to the server i am using ajax as i have the form as a partial on the page. I have a class that has these parameters which is the "EditModel" class in C# on the server.
How would i convert this to these variables to this model object so that i can pass the data though, this model has to be created using javascript
function getFromData() {
//alert("hell yea");
var username = document.getElementById("Name").value;
var pa = document.getElementById("password").value;
var email = document.getElementById("Email").value;
var active = document.getElementById("IsActive").value;
}