title: Code Behind Client Side Alert
body: <p>I previous asked for assistance but don't think I ask the right question.  I am new to coding &amp; have a web app with a form on it which has a yes/no dropdown &amp; a textbox after for a reason.  I managed to write the code behind for a msgbox but I need it on the client side.  I know it's not nearly as complicated as I thihk.  This is the code behind I used for the server side msgbox:</p>
  
  <pre><code>Protected Sub SubmitButton_Click(sender As Object, e As Event Args) Handles SubmitButton.Click
  If CriticalList.Text = "Yes" THEN
   If TextBox13.Text &lt;&gt; "" THEN
     SqlDataSource1.Insert()
   Response.Redirect("FormsReport.aspx")
  ELSE
    MsgBox("If critical, you MUST provide a reason.")
   End IF
  ELSE
     SqlDataSource1.Insert()
    Response.Redirect("FormsReport.aspx")
  End IF
  End SUB
  </code></pre>
  
  <p>Can someone, ANYONE please give me some guidance of how I would write this for a client side alert? Preferably in code behind.</p>