Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
check multiple textboxes is emty oe not at a time
Murli Jadhav
Jul 7 2017 5:10 AM
158
Reply
My textBoxes Is contained on panel3 and panel3 is above on panel2
I want validate textboxes my code is
public void ClearTextBoxes(Control.ControlCollection cc)
{
foreach (Control ctrl in cc)
{
TextBox tb = ctrl as TextBox;
if (tb == null)
messagebox.show("Empty Textbox Found");
}
}
but It Throws an error -"Object refference not set an instance of an object"
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
About AsyncFileUpload in asp.net
Too many characters in literal