Answers for "asp.net check if textbox is empty"

C#
2

c# check if textbox is not empty

if (String.IsNullOrEmpty(textBox1.Text))
{
    // Do something...
}
Posted by: Guest on August-30-2020
4

how to check if textbox is empty in c#

string.IsNullOrWhiteSpace(textBox.Text); // returns boolean
Posted by: Guest on June-17-2020
0

asp validator check if textbox is empty

<asp:RequiredFieldValidator runat="server" ID="txtEURequiredValidator" ErrorMessage="EU should not be empty" />
Posted by: Guest on June-03-2021

C# Answers by Framework

Browse Popular Code Answers by Language