<%@ Page Language="c#" CodeBehind="Free.aspx.cs" MasterPageFile="~/themes/Default/Site.Master"
    AutoEventWireup="True" Inherits="Aspx1.Free" Title=" _ 免费获取源码" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <center>
        <h2>
            轻松推广，免费获取源码</h2>
    </center>
    <center>
        <table id="Table1" cellspacing="0" cellpadding="0" width="500px" border="1" style="border-style: solid;">
            <tr>
                <td align="center" width="30%" height="50px;">
                    源码名称：
                </td>
                <td style="text-align: left">
                    &nbsp;<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>&nbsp;
                </td>
            </tr>
            <tr>
                <td align="center" width="30%" height="50px;">
                    说明：
                </td>
                <td style="text-align: left">
                    &nbsp;您只需把推广代码发到各大论坛或自己的好友，为本站带来
                    <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
                    个ip，即可免费获取此源码！
                </td>
            </tr>
            <asp:Panel ID="GetCode" runat="server">
                <tr>
                    <td align="center" colspan="2" height="50px;">
                        请设定您的帐号密码，获取推广链接：<br />
                        （帐号密码用来查看您的推广效果，并用来获取该源码，所以请牢记！）
                    </td>
                </tr>
                <tr>
                    <td>
                        帐号：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserName"
                            Display="Dynamic" ErrorMessage="帐号不能为空！"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        密码：
                    </td>
                    <td>
                        <asp:TextBox ID="txtPassWord" runat="server" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassWord"
                            Display="Dynamic" ErrorMessage="密码不能为空！"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        再输入一遍密码：
                    </td>
                    <td>
                        <asp:TextBox ID="txtPassWord2" runat="server" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPassWord2"
                            Display="Dynamic" ErrorMessage="密码不能为空！"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassWord"
                            ControlToValidate="txtPassWord2" Display="Dynamic" ErrorMessage="两次输入的密码不一致！"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="btPay" runat="server" Text="获取推广链接" OnClick="btPay_Click" CssClass="button">
                        </asp:Button>
                    </td>
                </tr>
            </asp:Panel>
            <asp:Panel ID="EffectsCode" runat="server" Visible="false">
                <tr>
                    <td align="center" colspan="2">
                       <h3> 您的推广代码：</h3><br />
                        <asp:TextBox ID="TextBox1" runat="server" Height="83px" TextMode="MultiLine" Width="440px"
                            onclick="window.clipboardData.setData('text',this.value);this.select();window.status='复制成功!';"></asp:TextBox><br />
                        您可以用刚才输入的帐号，密码登录<a href="/user/">个人中心</a>查看推广效果，并获取源代码！<br />
                        <b>注意：</b>同一IP 24 小时之内多次点击，只计算一次推广！
                    </td>
                </tr>
            </asp:Panel>
        </table>
    </center>
    <br />
</asp:Content>
