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
aadi kumary
NA
25
19.1k
Validating DataList. when datalist count is zero
Sep 21 2016 5:23 AM
-
here i am uploading company products, after that i am saving all products into databas.
i want give the
RequiredFieldValidator
to
DataList
, when DataList is empty.
and also display in
ValidationSummary
// if (DataListCProductsImgs.Items.Count=0 )
// RequiredFieldValidator Fire ---"Upload one product"
i want to do in javascript or jquer ...
i tryed..
custom validator
, But ControlToValidate=
?
function gettotalRows(sender, arguments)
{
var totalRowCount = $("[id*=DataListCompanyImgs] tr").length;
if(totalRowCount>0)
{
arguments.IsValue = true;
}
}
is there any another method.. to validate clientside.
Help me ..
Thanks
Reply
Answers (
1
)
The resource cannot be found.
How to create dynamic website?