How to pass form data from HTML(.html) to Web service(c#) and then registers this in a database, it's possible?
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<meta charset="utf-8" />
</head>
<body>
<form id="form1" method="post" action="#">
<div>
<div>
<input id="Text1" type="text" name="username"/>
</div>
<div>
<input id="Text2" type="text" name="password" />
</div>
<div>
<input id="Button1" type="button" name="enviar" value="Enviar" />
</div>
</div>
</form>
</body>
</html>
- db contains a table with two fields username and password.
- preferably json.
- use restful.