How can we post a complete HTML form in JSON format?( ASP.NET JSON interview questions with answers)
- By Shiv Prasad Koirala in ASP.NET
- Oct 10th, 2013
- 6409
- 0
To post a complete HTML form we need to call "serialize" function as shown in the below code. "form1" is a HTML form. The data given by the function can then be passed to the "post" method of Jquery."DisplayData" is a callback function to handle the output given by the server.
var Mydata = $("#form1").serialize();
$.post("/Customer/getCustomer", MyData, DisplayData);
We are thankful to questpond.com to provide this ASP.NET JSON interview question. Do view their 500 interview questions videos.
Shiv Prasad Koirala
Visit us @ www.questpond.com or call us at 022-66752917... read more
![](https://www.dotnetinterviewquestions.in/img/net-grid.jpg)
- By Shiv Prasad Koirala
- Jun 21st, 2013
- 162684
- 0
.NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala
![](https://www.dotnetinterviewquestions.in/img/c-grid.jpg)
- By Shiv Prasad Koirala
- Dec 8th, 2016
- 88608
- 0
Exception Handling in C# using example step by step
![](https://www.dotnetinterviewquestions.in/img/aspnet-grid.jpg)
- By Shiv Prasad Koirala
- Sep 7th, 2013
- 71693
- 0