Div onload function and embedding server code c#
<p>I am trying to call c# properties in .aspx page, where myfunc is jquery function.
this function take parameters which i am passing through c# public properties. and I want to call this function as soon as div  is rendered.previously i have done this  on prerender event  in ascx control.  wha is exact ssyntax for below code and  calling jquery function from here is valid?</p>

<pre><code>    &lt;div  class ="v" onload ="Javascript:myfunc('&lt;%= this.articleID  %&gt; '      
     ,'" +&lt;%=this.UserID %&gt;+"','" +&lt;%=this.EncryptedUserID %&gt;" +','" +&lt;%# 
     this.ItemIndex  %&gt;)"&gt;
</code></pre>

<p>thanks</p>

<p>Edited</p>

<p>Ok If i do like this way</p>

<pre><code>            &lt;div  class ="v"  &gt;
                         &lt;script language ="javascript" &gt;

                          JGetTotalVotes(&lt;%= this.articleid  %&gt;  ,&lt;% 
              this.ThisEncryptedUserID %&gt;,&lt;% this.ItemIndex  %&gt;,'aaa');
                          &lt;/script&gt;
</code></pre>

<p></p>

<p>I  do not want server side hidden fields solutions and if i use hiden field ( non server html tag) then i still need to call &lt;%%> to fetch value from server side to hiddent field</p>
