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
Abhineet Srivastava
NA
890
95k
On Client Click is not working
Feb 13 2014 2:53 AM
I have asp.net button--
<asp:Button ID="btnCommit" runat="server" Text='<%$ Resources:ZippSlipsResource, ViewForm_Commit %>'
CssClass="button green savensendbtn" OnClick="btnCommit_Click" OnClientClick="return ValidSave();" />
My Java Script is-
-----------
<script type="text/javascript">
function ValidSave() {
if (typeof (Page_ClientValidate) === "function")
if (!Page_ClientValidate())
return false;
if ($("span[id$='lblPayPalUserMissing']").attr("IsMissing") == "true" && $("input[id*='rblPaymentMode']:checked").val() == '<%= ZippSlips.Core.Model.Enums.PaymentMode.CreditCard %>') {
$.blockUI({ message: $("div#MissingPaypalAccountError") });
return false;
}
else if ($("#liMandatoryItemError").length > 0 && $(".paymentgrid").find("input[type='radio'],input[type='checkbox']").length > 0 &&
$(".paymentgrid").find("input[type='radio']:checked,input[type='checkbox']:checked").length == 0) {
$("#liMandatoryItemError").removeClass("hide");
return false;
}
else {
return true;
}
}
</script>
Problem is my Java Script code is not firing on Button click.
is any one have adea about this?
Reply
Answers (
9
)
Error not replicating when replicated in server
how to optimize an asp.net website for search engine?