title: How to call JavaScript/jQuery function from .cs file C#
body: <p>I'm working on asp.net (C#) project which include some page files (aspx, aspx.cs) and some only (.cs) file. I'm able to access JavaScript/jQuery functions from page files (aspx, aspx.cs) using <code>scriptregister</code>. but my question is how can I access the JavaScript/jQuery functions from (.cs) files. I'm generating some html tags in (.cs) file therefore in need of to call JavaScript/jQuery function from (.cs) classes.</p>
  
  <p>The files I have are(for example):</p>
  
  <ul>
  <li>Default.aspx</li>
  <li>Default.aspx.cs</li>
  <li>And Web.cs (My concern is to call JavaScript/jQuery function from web.cs)</li>
  </ul>
  
  <p>Actually, What I'm trying to do is to generate some HTML code in Web.cs (Business Object) and while generating HTML code in web.cs i need some other dynamic HTML code generated by jQuery function which output is  my concern: <code>var output ="My HTML Code Generated by jQuery function"</code></p>
  
  <p>Now I need the above jQuery output to merger with Web.cs HTML code generating.</p>
  
  <p>Kindly let me know how can it be possible to call jQuery function from web.cs and get back the result from jQuery to web.cs in order to merger? </p>
  
  <p>Thanks</p>