2
@using (Html.BeginForm("Index", "HRBankInfo", FormMethod.Get))
{
    <div align="center" class="display-label">
    @ViewBag.message
    <br /><input type="submit" value="Ok" />
    </div>

}

this is one of my partial view which appears on operation success.it refreshes page and load index page i want to update page without reloading whole page.

PeeHaa
  • 71,436
  • 58
  • 190
  • 262
S.p
  • 1,059
  • 3
  • 15
  • 27
  • 2
    You've tagged the question with ajax, so I guess you already know the answer :) – StuartLC Aug 16 '12 at 09:57
  • 1
    not yet.i have just started using ajax not really comfortable yet with ajax...wish u could help me out. – S.p Aug 16 '12 at 10:01
  • Have a look here : http://stackoverflow.com/questions/4557021/mvc-3-ajax-load-partial-view-into-div – StuartLC Aug 16 '12 at 10:26

1 Answers1

0

try this:

<script type="text/javascript">
$('#buttonId').live('click', function (e) {
    e.preventDefault();
    $(this).closest('#divid').dialog('close');
});
</script>
Suraj Shrestha
  • 1,790
  • 1
  • 25
  • 51