<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Word Textron .NET component - Word document DOC, DOCX, RTF in ASP.NET (Demo)
    </title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h1>
            Word Textron .NET component</h1>
        <p>
            This example demonstrates the <a href="http://www.devtriogroup.com/WordTextron/Default.aspx">
                Word Textron .NET component</a>. The demo generates a word document from<br />
            the table on the web page. The output word document can be saved into the word 
            formats: Doc, Docx, Rtf.</p>
        <p>
            Instruction:</p>
        <ol>
            <li>Add or Delete items of the table.</li>
            <li>Choose Word format: doc, docx or rtf.</li>
            <li>Press button to generate the Word document.</li>
        </ol>
        <asp:Panel ID="Panel2" runat="server" Width="555px" BorderStyle="Solid" BorderWidth="1px"
            BorderColor="LightGray" Style="padding: 10px;">
            <asp:GridView ID="GridView1" runat="server" CellPadding="4" CellSpacing="1" ForeColor="#333333"
                GridLines="None" Font-Size="Small">
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
        </asp:Panel>
        <br />
        <asp:Panel ID="Panel1" runat="server" Width="555px" BorderStyle="Solid" BorderWidth="1px"
            BorderColor="LightGray" Style="padding: 10px;">
            <table width="100%">
                <tr>
                    <td>
                        First Name<br />
                        <asp:TextBox ID="TextBox1" runat="server" TabIndex="1">Trudie</asp:TextBox>
                    </td>
                    <td>
                        Last Name<br />
                        <asp:TextBox ID="TextBox2" runat="server" TabIndex="2">Flower</asp:TextBox>
                    </td>
                    <td>
                        Birth Date<br />
                        <asp:TextBox ID="TextBox3" runat="server" TabIndex="3">01.30.1987</asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Gender Code<br />
                        <asp:TextBox ID="TextBox4" runat="server" TabIndex="4">F</asp:TextBox>
                        <br />
                    </td>
                    <td colspan="2">
                        Occupation<br />
                        <asp:TextBox ID="TextBox5" runat="server" TabIndex="5" Width="341px">Construction equipment technician</asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <br />
                        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click1" TabIndex="6" Text="+ Add New Record" />
                    </td>
                    <td>
                        <br />
                        <asp:Button ID="Button2" runat="server" TabIndex="7" Text="- Delete Last Record"
                            OnClick="Button2_Click" />
                    </td>
                    <td>
                        <br />
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <br />
        <asp:Panel ID="Panel3" runat="server" Width="555px" BorderStyle="Solid" BorderWidth="1px"
            BorderColor="LightGray" BackColor="#EEEEEE" Style="padding: 10px;">
            <table>
                <tr>
                    <td style="text-decoration: underline;">
                        Word Document Format:
                    </td>
                    <td>
                        <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"
                            TabIndex="8">
                            <asp:ListItem Selected="True">DOC</asp:ListItem>
                            <asp:ListItem>DOCX</asp:ListItem>
                            <asp:ListItem>RTF</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Style="font-weight: bold;"
                            Text="Generate Document" TabIndex="9" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <div style="font-size: 10px; color: Gray;">
            <br />
            <a href="http://www.devtriogroup.com" title="ASP.NET components">Devtrio Group</a>
            &copy; All rights reserved.</div>
    </div>
    </form>
</body>
</html>
