title: How to register a new user using asp.net(C#)?
body: <p>I want to make a function to register a new user without using CreateUserWizard. How could I change my code to allow this?</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="registerUser.aspx.cs" Inherits="_Default" %&gt;
  
  &lt;html&gt;
    &lt;head runat="server"&gt;
      &lt;title&gt;LLLY网上书店 - 注册&lt;/title&gt;
      &lt;link rel="stylesheet" href="css/style.css"&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;div class="container"&gt;
        &lt;section class="register"&gt;
          &lt;h1&gt;LLLY网上书店 - 注册新用户&lt;/h1&gt;
          &lt;form method="post" action="index.html" runat="server"&gt;
            &lt;div class="reg_section personal_info"&gt;
              &lt;h3&gt;个人信息&lt;/h3&gt;
              &lt;asp:TextBox ID="username" runat="server" value="" placeholder="用户名"&gt;&lt;/asp:TextBox&gt;
              &lt;asp:TextBox ID="email" runat="server" placeholder="电子邮件地址"&gt;&lt;/asp:TextBox&gt;
            &lt;/div&gt;
            &lt;div class="reg_section password"&gt;
              &lt;h3&gt;用户密码&lt;/h3&gt;
              &lt;asp:TextBox ID="password" runat="server" placeholder="请输入密码"&gt;&lt;/asp:TextBox&gt;
              &lt;asp:TextBox ID="confirmPwd" runat="server" placeholder="确认密码"&gt;&lt;/asp:TextBox&gt;
              &lt;input type="password" name="confirm" value="" placeholder="确认密码"&gt;--%&gt;
            &lt;/div&gt;
            &lt;div class="reg_section password"&gt;
              &lt;h3&gt;地区&lt;/h3&gt;
              &lt;asp:DropDownList ID="DropDownList1" runat="server"&gt;
                &lt;asp:ListItem&gt;1&lt;/asp:ListItem&gt;
                &lt;asp:ListItem&gt;2&lt;/asp:ListItem&gt;
                &lt;asp:ListItem&gt;3&lt;/asp:ListItem&gt;
              &lt;/asp:DropDownList&gt;
              &lt;asp:TextBox ID="textarea" runat="server" TextMode="MultiLine" placeholder="家庭住址"&gt;&lt;/asp:TextBox&gt;
            &lt;/div&gt;
            &lt;p class="terms"&gt;
              &lt;label&gt;
                &lt;input type="checkbox" name="remember_me" id="remember_me"&gt;
                我同意  &lt;a href="http://www.imomen.com/"&gt;LLLY网上书店&lt;/a&gt;&amp;nbsp;注册准入原则
                &lt;/label&gt;
            &lt;/p&gt;
            &lt;p class="submit"&gt;
              &lt;asp:Button ID="commit" runat="server" Text="注册" onclick="commit_Click"&gt;&lt;/asp:Button&gt;
            &lt;/p&gt;
          &lt;/form&gt;
        &lt;/section&gt;
      &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>