Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My Javascript in ASPX page

C#
function fun()
{
   var o=window.event.srcElement;
   if(o.tagname=="input"&&o.type=="Chechbox")
   {
      _dopostback('<%=treechild.clientID%>','t0');
   }
}


This is showing error as expecting ")"
Please help me..............
Posted
Updated 24-Oct-14 6:48am
v4
Comments
Richard Deeming 24-Oct-14 9:44am    
You're missing the () after the function name, and the closing ' after the <%=treechild.clientID%> - are those typos in your question, or is that your real code?
Nagarjuna558 24-Oct-14 9:52am    
Yes this is my real code, I have modified end closing what you mentioned but not working.
Sergey Alexandrovich Kryukov 24-Oct-14 17:16pm    
To code looks fine (I would always put spaces around && though). I doubt you show the same code.
—SA

1 solution

I have not tried this but could it be that the dopostback needs two underscores upfront instead of one? Just curious. :)
 
Share this answer
 
Comments
Nagarjuna558 25-Oct-14 8:06am    
Thanks rick you are right. Actually i forgot to add in the question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900