Jun 06, 2012, 3:28 PM
[CLOSED] DirectMethod's problem
Hi,
In the next sample:
Any idea?
Thanks,
In the next sample:
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<ext:ResourceManager runat="server" />
<script runat="server">
[DirectMethod]
public void SetTimeStamp()
{
this.Label1.Text = string.Concat("Server Time: ", DateTime.Now.ToLongTimeString());
}
</script>
<ext:Button ID="Button5" runat="server" Text="Click Me" Icon="Lightning">
<Listeners>
<Click Handler="App.direct.SetTimeStamp();" />
</Listeners>
</ext:Button>
<ext:Label ID="Label1" runat="server" Format="Server Time: {0}" Text='<%# DateTime.Now.ToLongTimeString() %>' AutoDataBind="true" />
</body>
</html>
When click into button, not call to SetTimeStamp method and call to REST View Controller method.Any idea?
Thanks,
Last edited by Daniil; Jun 12, 2012 at 4:16 PM.
Reason: [CLOSED]