@using (Html.BeginForm("t", "Test", FormMethod.Post))
{
@Html.ValidationSummary(true)
@Html.AntiForgeryToken("PostData")
@*
@Html.Label("Name")
@Html.TextBox("Name")
@Html.Label("Check")
@Html.TextBox("Check")*@
@* @Html.EditorFor(m=>m.Address.AreaName)
@Html.EditorFor(m=>m.custindi.FirstName)*@
@Html.TextBox("Name", (string)ViewBag.FBUserLastName)
<input type="submit" name="area" value="Create" id="create" />
<input type="submit" name="Areaget" value="Post" />
@* <button name="button" value="area">Area</button>
26: <button name="button" value="areaget">AreaGet</button>*@ @* @Html.ActionLink("Search", "Search", "Home", new { id = Model.album_id }) *@
}
<script type="text/javascript">
$(function () {
$('form').submit(function () {
$.ajax({
url: this.action,
type: this.method,
data: $(this).serialize(),
success: function (result) {
$('#popUp').html(result);
}
});
return false;
});
});
</script>
<script type="text/javascript">
$(function () {
$('form').submit(function () {
$("#popUp").dialog();
});
});
</script>
when i clicked the button create then it has to popup the partial view else it has to be post n database