title: convert an empty string (from textbox) to null using ASP.NET
body: <p>if I don't enter anything in one of the textbox , ASP.NET can't tell an empty textbox and treat it at null... So anyone please help me how to detect an empty textbox and set that to null</p>
  
  <p>i know that this code is ganna work well </p>
  
  <pre><code>If MUSIC_TITLE.Text.Trim() = "" Then
  
  MUSIC_TITLE.Text = Nothing
  
  End If
  </code></pre>
  
  <p>but i can't use be couse i have a lot of forms in my application so i need somthing or any function exist in the ASP.NET that can handel this </p>
  
  <p>and thats for the insert in a requet the sql server</p>
  
  <pre><code>"insert into Reunion values(" &amp; Convert.ToInt32(ID_Reunion.Text) &amp; ",'" &amp; d.ToString("MM/dd/yyyy") &amp; "'," &amp; Convert.ToInt32(ID_Membre.Text) &amp; ",'" &amp; Type_Reunion.Text &amp; "','" &amp; Session("Nom_GIAC") &amp; "')"
  </code></pre>
  
  <p>and tnks </p>