Hi,
My issue is , I am submitting page and getting error/success msg from db .I want to show error/success message on partial page. but it is showing on main page.
Please help
What I have tried:
my code :
Main View ClientInviteLetter :
@using(Html.BeginForm("SaveCustomerLetter", "Document", null, FormMethod.Post, new { id = "customerLetter", enctype = "multipart/form-data" }))
{
@Html.Partial("SaveCustomerDetailsPartialView")
}
Partial View SaveCustomerDetailsPartialView:
......
.........
@Html.TextBoxFor(model => model.ClientLetterDetails.DocumentUrl, new { id = "clientLetterUpload", type = "file", style = "background-color:White" })
.......
.......
Controller:
[HttpPost]
public ActionResult SaveCustomerLetter(iVisa.UI.Entities.Model.Client customerViewModel, FormCollection frmCustomerLetterViewModel)
{
....
...
return RedirectToAction(ClientInviteLetter ,WebConstants.Document);
}