Default.aspx
1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="XMLtoJSON_utility.Default" ValidateRequest="false"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2>Converting XML to JSON</h2><hr /><br />
<table style="width: 100%">
<tr>
<td> Select File <asp:FileUpload ID="FileUploader" runat="server" /> </td>
</tr>
<tr>
<td><br /><b>Upload XML:</b><br />
<asp:TextBox ID="txtXml" runat="server" TextMode="MultiLine" Height="300px" Width="500px"></asp:TextBox>
</td>
<td><br /><asp:Button ID="UploadButton" runat="server" Text="Upload_ConvertToJson" OnClick="UploadButton_Click" /><br /></td>
<td><br /><b>JSON:</b><br />
<asp:TextBox ID="txtJson" runat="server" TextMode="MultiLine" Height="300px" Width="500px"></asp:TextBox>
</td>
</tr>
</table>
<br />
<asp:Label ID="Label1" runat="server"></asp:Label><br />
<br />
<br />
<br />
<br />
</div>
</form>
</body>
</html>