@using MvcResourceLang.Models
@model Account
@{
    ViewBag.Title = "Register";
}
<script type="text/javascript">
    function RegisterClick() {
        $.ajax({
            data: { username: $("#UserName").val(), pwd: $("#Pwd").val()},
            type: "post",
            datatype: "json",
            url:'@Url.Action("Register")',
            success: function (data) {
                alert(data.msg);
            }
        })
    }

</script>
<h2>@Html.GetLangbyKey("RegisterDisplay")</h2>
<div class="logon-div">
    <table>
        <tr>
            <td>@Html.LabelFor(m => m.UserName)</td>
            <td>@Html.TextBoxFor(m => m.UserName)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m => m.Pwd)</td>
            <td>@Html.PasswordFor(m => m.Pwd)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m => m.ConfirmPwd)</td>
            <td>@Html.PasswordFor(m => m.ConfirmPwd)</td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="button" value="@Html.GetLangbyKey("RegisterDisplay")" onclick="RegisterClick()"/>
        </tr>

    </table>
</div>
