User Profile

Collapse

Profile Sidebar

Collapse
rexchie
rexchie
Last Activity: Nov 24 '14, 09:43 PM
Joined: Nov 20 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • validated if textbox is empty and not empty ,and what is the proper if else statement

    Validated if textbox is empty and not empty ,and what is the proper if else statement:
    Code:
    private void btnSave_Click(object sender, EventArgs e)
    {
      if (txtFName.Text == "")
      {
        labelID.Text = "!";
      }
      if (txtLName.Text == "")
      {
        labelLN.Text = "!";
      }
      if (txtMI.Text == "")
      {
        labelMN.Text = "!";
    ...
    See more | Go to post
    Last edited by Frinavale; Nov 24 '14, 09:07 PM. Reason: Added the description posted in the title into the body of the thread so that the code had context. Added code tags.

  • rexchie
    started a topic what is the proper if else statement of this.

    what is the proper if else statement of this.

    What is the proper if else statement of this:

    Code:
    private void btnSave_Click(object sender, EventArgs e)
    {
      if (txtID.Text.Trim()== "")
      {
        labelID.Text = "!";
      }
            
      if (txtLastName.Text.Trim()=="")
      {
        labelLN.Text = "!";
      }
      if (txtFirstName.Text.Trim()=="")
      {
        labelFN.Text
    ...
    See more | Go to post
    Last edited by Frinavale; Nov 21 '14, 02:42 PM.
No activity results to display
Show More
Working...