Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Reply
show validation message on button click
Ajaykumar Singh
Nov 29 2016 7:53 AM
287
Reply
$.ajax({
url: '@Url.Action("AddNewBranch", "BranchAPI", new { httproute = "" })',
type: "POST",
data: JSON.stringify(branchDetail),
contentType: "application/json;charset=utf-8",
success: function (result) {
if (result == "Success") {
addNewBranchModal();
}
else if (result == "fail") {
alert("2nd"); //after this i want to enable @Html.ValidationMessageFor
};
},
error: function (e) {
alert(e);
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Preventing fakepath display in AsyncFileUpload
I want to generate an I tag inside the a tag of actionlink m