Default.aspx 1.37 KB
<%@ 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 &nbsp;<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>