Hi i have one field called contact person in my view. i kept one add button near to that field if i click that button the partial view will appear as pop-up window.
If i enter the details and click the save button it comes to the post action to save the data. Now i got 2 issues in that.
1) The Value of CustomerName will be null.
2) After i click create button in popup window after enter the details either it have to show the same popup window or it have to show the parent view i got issue in this step. In this place it redirect to main window of partial view. which is mentioned in below image. i tried my level best to explain my issue . please any one help me to resolve this issue.
Error Output
My View Code
@Html.Label("Contact Person", new { @class = "control-label" })
@Html.DropDownListFor(model => model.CustomerContactID, new SelectList(string.Empty, "Value", "Text"), "Please select a ContactPerson", new { @class = "form-control", type = "text", id = "CustomerContactID" })
function (data) { if (data == 0) { location = location.href; } }, 'json');
}
I posted my whole code here please any one check my code. In partial view the customer name will be null when i click create button and it didn't redirect correctly. i try my level best to explain my issue. please any one give solution for this problem.
Advance Thanks..
Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Replies
Know the answer? Post it — somebody with the same question will find it here.