title: Showing alert message in VB.NET
body: <p>In my server side code, I need to display an alert message and stop the execution of the page when a certain condition is satisfied. The execution stops, but I am not getting the alert message. What am I missing? My code goes like this.</p>
  
  <pre><code>Try
          If txtAmtRequested.Text &gt; Val(HiddenTotalFeeAmount.Value) Then
              ScriptManager.RegisterClientScriptBlock(Me, GetType(Page), UniqueID,
              "javascript:alert('Total Fee Amount set for this student is - '" &amp; HiddenTotalFeeAmount.Value &amp; "'... Enter Concession Amount lesser than this one..!')", True)
                  Exit Function
              End If
          Catch ex As Exception
  
          End Try
  </code></pre>