c# - Call aspx page function from user control -
i creating user command html image button.i want phone call aspx page function javascript when click image button.i using web method not working in user control. please help me prepare issue.
ascx file code :
<input type=\"image\" src=\"plan_search/images/buy.png\" onclick='add_plan();return false;' /> function add_plan() { seek { alert('enter'); pagemethods.add_plan_items(onsucceeded, onfailed); } grab (ex) { alert(ex); } }
in aspx page:
[system.web.script.services.scriptmethod()] [system.web.services.webmethod] public static string add_plan_items() { seek { homecoming "welcome world of ajax.net , value passed : "; } grab (exception e1) { throw; } }
c# asp.net
No comments:
Post a Comment