title: Call javascript from vb.net code behind
body: <p>How can I call a javascript function from code behind?<br>
  The most popular response is "<code>ScriptManager.RegisterStartupScript</code>" however, that does not work in my situation.  </p>
  
  <p>I have a vb class that is doing a database check to see if a record exists. If exists, then call a javascript function to display an alert("Record exists")  </p>
  
  <p>So I am doing something like  </p>
  
  <pre><code>Dim strMessage as string = "javascript:RecordExists('Param');"  
  </code></pre>
  
  <p>How do I call this function from my vb.net class?</p>