ReferenceError: function is not defined on the onclick function

DimitriVleskof

New Member
I get a "ReferenceError: punt is not defined" - everything seems to be right and I can't identify the mistake. Here is the related code:\[code\]<script src="http://stackoverflow.com/questions/Scripts/jquery-1.9.1.min.js" type="text/javascript"> function punt(rowIndex, Name, actionType) { alert("hello"); }</script>\[/code\]and inside the ItemTemplate in the Repeater I have:\[code\]<input type="image" style="border-width:0" src='http://stackoverflow.com/questions/15667835/<%=ResolveUrl("~/css/images/icon_update.png") %>' alt="Update Reviewer List" tabindex="0" title="Update Reviewer List" onclick="punt(<%#Container.ItemIndex%>, '<%#HttpUtility.HtmlEncode((string)DataBinder.Eval(Container.DataItem, "Name"))%>', 'Update'); return false;" /> \[/code\]
 
Back
Top