Click here to Skip to main content
15,922,145 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
how to html checkbox value get in xml format on buttion click in html page?

What I have tried:

how to html checkbox value get in xml format on buttion click in html page
Posted
Updated 9-Jun-16 10:04am
Comments
ZurdoDev 9-Jun-16 15:39pm    
Write the code. Where are you stuck?
Sergey Alexandrovich Kryukov 9-Jun-16 15:57pm    
First of all, why XML? JSON is native to JavaScript and can be use elsewhere (on server side, with C#, in your case).
With JSON, you can natively collect all data in one Ajax HTTP request and deliver it all on the server side.
What have you tried so far?
—SA

1 solution

If you really need XML, please learn this topic: Parsing and serializing XML — Web developer guides.

This CodeProject article can also be useful: Writing XML using JavaScript.

But look at my comment to the question. With JavaScript, JSON is more native and easier to use. As you server side is probably ASP.NET (you tagged C#), you also need to use it with .NET, which is also not a problem.
Please see:
JSON — Wikipedia, the free encyclopedia,
JSON — JavaScript.

—SA
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900