Office Document APIs for .NET
ITIL Career Advice
PMP Career Advice
Android Intel XDK
Welcome Guest !
Which way is used to check whether Textbox or any string value is empty or not?
on 12/1/2014 | Category:
Visual Studio Interview questions
| Views: 1018 |
Select from following answers:
TextBox1.Text == ""
TextBox1.Text == String.Empty
TextBox1.Length == 0
Above all options are correct to check Text Value.But best option is string.IsNullOrEmpty as this is Dot Net in-built function and also check nullability.
Show Correct Answer
Many Interviews |
< Previous :
What are the ways to Exit a method without Exiting ...
Next > :
Which property is used to set any color of a contr ...
Comments or Responses
Login to post response
More Interview Questions by vishalneeraj-24503
Which property is used to set any color of a control?
How to add a first date in given Month?
How to check if the Date is the first of every month?
What are the rules needs to be considered while Merging one datatable ...
Which method is used to Merge one Datatable to another Datatable?
How to Refresh Webpage using HTML Meta Tag?
How to escape single quote in SQL Server?
Which keyword is used to exit from for loop in VB.NET?
Latest Interview Questions
How to implement multiple inhertiance in C#
How to attach mouse up event to an element?
How to attach mouse move event to an element ?
How to attach mouse leave event to an element?
How to attach mouse enter event to an element in jquery ?
How to attach mouse down event to an element in jquery ?
How to attach load event to an element in jquery ?
In jquery how to attach key up event to an element?