Div onload function and embedding server code c#

Cyberphunk

New Member
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?\[code\] <div class ="v" onload ="Javascript:myfunc('<%= this.articleID %> ' ,'" +<%=this.UserID %>+"','" +<%=this.EncryptedUserID %>" +','" +<%# this.ItemIndex %>)">\[/code\]thanksEditedOk If i do like this way\[code\] <div class ="v" > <script language ="javascript" > JGetTotalVotes(<%= this.articleid %> ,<% this.ThisEncryptedUserID %>,<% this.ItemIndex %>,'aaa'); </script>\[/code\]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 <%%> to fetch value from server side to hiddent field
 
Back
Top