title: Call javaScript Function Server Side
body: <p>I wrote this javascript Function  :</p>
  
  <pre><code>       function ShowMsg(msg) {
                  $.blockUI({
              message: '&lt;div dir=rtl align=center&gt;&lt;h1&gt;&lt;p&gt;' + msg + '&lt;/p&gt;&lt;/h1&gt;&lt;/div&gt;',
              css: { 
                  border: 'none',
              padding: '15px',
              backgroundColor: '#000',
              '-webkit-border-radius': '10px',
              '-moz-border-radius': '10px',
              opacity: .5,
              color: '#fff'
              }
          });
  
          setTimeout($.unblockUI, 2000); 
  
  
  
      }
  </code></pre>
  
  <p>i want to call this Function Server Side at asp.net :</p>
  
  <pre><code>Page.ClientScript.RegisterClientScriptBlock([GetType](), "script", "ShowMsg(" &amp; "Saved" &amp; ");", True)
  </code></pre>
  
  <p>But it does not work.
  the function is work without argument.
  is there any syntax error exist?
  thanks</p>