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
alaa
NA
166
84.8k
how to check all textbox on click btnsave
Jul 19 2013 6:11 AM
how to check all textbox on click btnsave if there is no empty text box do something else message error that you have to need to fill empty textbox frist
i try this code
foreach (Control c in this.Controls)
{
if (c is TextBox)
{
TextBox textBox = c as TextBox;
if (textBox.Text == string.Empty)
{
textbox.text="please fill your empty textbox ";
}
else
{
// if my textbox all are fill i put my code to save data in datebase here
}
}
}
i try this code but it do nothing ????
Reply
Answers (
5
)
how do i install entity framework in visual studio 2008
How could i export crystal report as image?