|
@model Parichay.MVC.Models.PassRecovery1Model
@{
ViewBag.Title = "RecoverPass1";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Recover Your Password</h2>
<script src="@Url.Content("~/Content/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
@Html.HiddenFor(m=>m.stepN)
<fieldset>
<legend><b>Enter your Basic Information</b></legend>
<table class="tblAllBorders" style="display:@(Model.stepN==0?"block":"none")">
<tr><th>Step 1:</th><td>
</td></tr>
<tr>
<th>
<div class="editor-label">
@Html.LabelFor(model => model.UserName)
</div>
</th>
<td><div class="editor-field">
@(string.IsNullOrEmpty(Model.UserName)?Html.EditorFor(model => model.UserName):Html.HiddenFor(m=>Model.UserName))
@Html.ValidationMessageFor(model => model.UserName)
</div> </td>
</tr>
<tr><td colspan="2">OR</td></tr>
<tr><th><div class="editor-label">
@Html.LabelFor(model => model.Email)
</div></th>
<td><div class="editor-field">
@(string.IsNullOrEmpty(Model.Email) ? Html.EditorFor(model => model.Email) : Html.HiddenFor(m => Model.Email))
@Html.ValidationMessageFor(model => model.Email)
</div></td>
</tr>
<tr><td colspan="2"> <input type="submit" name="submitButton" id="submitButton1" value="Find" /></td></tr>
</table>
<table class="tblAllBorders" style="display:@(Model.stepN==1?"block":"none")">
<tr><th>Step 2:</th>
<td>Answer your security question.</td>
</tr>
<tr>
<th><div class="editor-label">
@Html.LabelFor(model => model.PasswordQuestion)
</div></th>
<td><div class="editor-field">
@Html.DisplayFor(model => model.PasswordQuestion)
@Html.ValidationMessageFor(model => model.PasswordQuestion)
</div></td>
</tr>
<tr>
<th><div class="editor-label">
@Html.LabelFor(model => model.PasswordAnswer)
</div></th>
<td><div class="editor-field">
@Html.EditorFor(model => model.PasswordAnswer)
@Html.ValidationMessageFor(model => model.PasswordAnswer)
</div></td>
</tr>
<tr><td colspan="2">
<input type="submit" name="submitButton" id="submitButton2" value="Start Reset" />
</td></tr>
</table>
</fieldset>
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I love programming, reading, and meditation. I like to explore management and productivity.