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

how to trap empty string(value) before it save to database

P: 1
can anyone hlp on this...

how to trap empty string(value) before it saves to database...

this one id like to happen...

lastname
firstname
middlename


if one of the list field is empty.. error occured telling that one of them is empty..
thnx a lot... i need it soon
Jul 23 '07 #1
Share this Question
Share on Google+
2 Replies


ak1dnar
Expert 100+
P: 1,584
Hi BRENDAMAGE ,

Welcome to TSDN !

Please be careful, not to post the questions in Articles section.
These guys will change your name with BRAINDAMAGE.

ok Leave it.This is your first post to the forum however. even experienced ones also doing the same.

enjoy the ride!
Jul 23 '07 #2

ak1dnar
Expert 100+
P: 1,584
can anyone hlp on this...

how to trap empty string(value) before it saves to database...

this one id like to happen...

lastname
firstname
middlename


if one of the list field is empty.. error occured telling that one of them is empty..
thnx a lot... i need it soon
I am assuming those fields that you trying to validate are Form Inputs.
You can validate the form input on two places, client side and server side. try it here
Jul 23 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.