Horje
c# clear all textboxes Code Example
c# clear a textbox
// Method 1: Use clear method
Textbox.clear();
// Method 2: Set text to string.Empty
Textbox.Text = string. Empty;
// Method 3: Set text to blank
Textbox.Text = "";
c# clear all textboxes
 private void ClearTextBoxes()
 {
     Action<Control.ControlCollection> func = null;

     func = (controls) =>
         {
             foreach (Control control in controls)
                 if (control is TextBox)
                     (control as TextBox).Clear();
                 else
                     func(control.Controls);
         };

     func(Controls);
 }




Csharp

Related
c# loop through repeater items Code Example c# loop through repeater items Code Example
how get the user show mvc controller core 3.1 Code Example how get the user show mvc controller core 3.1 Code Example
and operator in c# Code Example and operator in c# Code Example
get connection string from web.config in c# Code Example get connection string from web.config in c# Code Example
c# randize list Code Example c# randize list Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11