Dec 27, 2019, 4:03 PM
Problem, with hash in direct method data
Hello
This code will cause direct method to fall
the problem is with # character. Is there any way how to prevent this method to failing?
This code will cause direct method to fall
the problem is with # character. Is there any way how to prevent this method to failing?
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Threading" %>
<%@ Import Namespace="System.Collections.Generic" %>
<ext:ResourceManager runat="server"></ext:ResourceManager>
<script runat="server">
[DirectMethod]
public static string GetTimeStamp4()
{
return "xxx #{0}";
}
</script>
<ext:Button runat="server" Text="Click Me" Icon="Lightning">
<Listeners>
<Click Handler="
App.direct.GetTimeStamp4({
success: function (result) {
Ext.Msg.alert('Server Time', result);
}
});" />
</Listeners>
</ext:Button>
Last edited by fabricio.murta; Dec 27, 2019 at 6:49 PM.