title: How to call a jquery from vb codebehind (asp)
body: <p>I am new to jqueries and I have a problem calling a dialog box If ever my user has an invalid search query and did not put a starting date. See I have this jquery code </p>
  
  <pre><code>$(function(){          
    $("#dialog").dialog(function() {                                    
       $("#dialog").dialog()};
    });
  });
  </code></pre>
  
  <p>Now I have these codes in vb : </p>
  
  <pre><code> Sub Subsearch()
      If txtfrom.Text &lt;&gt; "" And txtto.Text &lt;&gt; "" Then
          //some codes
  
      ElseIf txtfrom.Text &lt;&gt; "" And txtto.Text = Nothing Then
          //some codes
  
      ElseIf txtfrom.Text = Nothing And txtto.Text &lt;&gt; "" Then
  
          //call my JQuery 
  
      Else
          // some codes
  
      End If
  End Sub
  </code></pre>
  
  <p>Now how do I do this? </p>