By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,797 Members | 1,262 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,797 IT Pros & Developers. It's quick & easy.

validate if dropdownlist is empty

P: n/a
js
hi, how to validate if dropdownlist value is empty? many thanks.
Apr 23 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You can use:

if ddl.Items.Count = 0
' dropdownlist is empty
end if

Sonu Kapoor [MVP]
b: www.KapoorSolutions.com
w: www.DotNetSlackers.com
---
Posted via www.DotNetSlackers.com
Apr 23 '06 #2

P: n/a
js
Thansk, hwo to use client side validation?

<Sonu Kapoor [MVP]> wrote in message
news:Ox**************@TK2MSFTNGP02.phx.gbl...
You can use:

if ddl.Items.Count = 0
' dropdownlist is empty
end if

Sonu Kapoor [MVP]
b: www.KapoorSolutions.com
w: www.DotNetSlackers.com
---
Posted via www.DotNetSlackers.com

Apr 23 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.