Jun 27, 2011, 3:10 PM
[Closed]Help me...Ext.net.DirectMethods.btnSaveUserInfo is not a function...
Dear All
I used a Button Control in UserControl
Best Regards & Thanks
I used a Button Control in UserControl
<Buttons>
<ext:Button ID="btnSaveUserInfo" runat="server" Text="Save" Icon="Disk">
<Listeners>
<Click Handler="
Ext.net.DirectMethods.btnSaveUserInfo_Click({
success:function(result){
if(result===true){
Ext.Msg.alert('tips','Succeed');
}
else{
Ext.Msg.alert('tips','Failed');
}
}
});
" />
</Listeners>
</ext:Button>
and in my code-behind.I was defined a method "btnSaveUserInfo_Click"[DirectMethod(ShowMask = true, Msg = "Please wait .......")]
public bool btnSaveUserInfo_Click()
{
return false;
}
when I run this page,it will show the error msg:Error: Ext.net.DirectMethods.btnSaveUserInfo_Click is not a function
Could anyone tell me how will i do?Best Regards & Thanks
Last edited by wentai2011; Jun 28, 2011 at 11:50 AM.
Reason: close the post