TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
AnilKumar Murarishetti
NA
54
8.5k
Why Actionmethod is not hitting in controller using ajax
Jun 19 2019 1:45 AM
Hello everyone when i am clicking button, why action method is not calling can anyone suggest me ??
VIEW
=======
<script>
function SaveAndNextButton(e) {
var value = $(".selected td:first").html();
$.ajax({
type: "POST",
url: "/Cashier/Delete",
data: {
values: value
},
});
}
</script>
<input type="submit" id="btndelete" class="btn btn-primary" value="DELETE" onclick="SaveAndNextButton()" />
Controller
========
public JsonResult Delete(int ItemName)
{
//
}
Reply
Answers (
1
)
issues with row related in datatable in c#
Want to update DB When user close browser in asp.net ?.