Aug 27, 2017, 7:10 PM
[CLOSED] FileUploadField Causes DirectMethod to fail
I'm having an issue with a page that has a FileUploadField. When trying to call a DirectMethod unrelated to the file upload field, the page goes blank. Please see the following example, try clicking the "Test Direct Method" button and you should see the page go blank. If you remove the FileUploadField, the issue goes away. I believe this is a new issue in Ext.NET 4.3 that didn't exist in 4.2, but not 100% sure.
<%@ Page Language="C#" %>
<script runat="server">
[DirectMethod]
public void TestDirect()
{
}
</script>
<!DOCTYPE html>
<html>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<ext:FileUploadField runat="server" ButtonOnly="true">
</ext:FileUploadField>
<ext:FormPanel Width="100" runat="server">
<Buttons>
<ext:Button runat="server" Text="Test Direct Method">
<Listeners>
<Click Handler="App.direct.TestDirect();"></Click>
</Listeners>
</ext:Button>
</Buttons>
</ext:FormPanel>
</form>
</body>
</html>
Last edited by fabricio.murta; Aug 29, 2017 at 6:02 PM.