Aug 31, 2017, 8:33 AM
[CLOSED] Problem directevent in page with TabPanel and FileUploadField in Ext.net 4.3
Hi,
we are migrating from 4.2.0 to 4.3.
See my example, if in the page I have a TabPanel and a FileUploadField the response of directevent is wrong and the page becomes white.
In this case the response is : <textarea>{script:"Ext.net.Notification.show( {\"title\":\"The Server Time is: \",\"html\":\"10:20:42\"} );"}</textarea>
I can fix by setting the direcevent type to load.
Please help me.
Thank you
Jimmy
we are migrating from 4.2.0 to 4.3.
See my example, if in the page I have a TabPanel and a FileUploadField the response of directevent is wrong and the page becomes white.
In this case the response is : <textarea>{script:"Ext.net.Notification.show( {\"title\":\"The Server Time is: \",\"html\":\"10:20:42\"} );"}</textarea>
I can fix by setting the direcevent type to load.
Please help me.
Thank you
Jimmy
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Threading" %>
<%@ Import Namespace="System.Collections.Generic" %>
<script runat="server">
protected void UpdateTimeStamp(object sender, DirectEventArgs e)
{
X.Msg.Notify("The Server Time is: ", DateTime.Now.ToLongTimeString()).Show();
}
protected void fufNewImage_afterSelect(object sender, DirectEventArgs e)
{
}
</script>
<!DOCTYPE html>
<html>
<head runat="server">
<title></title>
</head>
<body>
<form runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server">
</ext:ResourceManager>
<ext:TabPanel ID="tabPnl" IDMode="Static" TabPosition="Top" runat="server" Border="true">
<Items>
<ext:Panel ID="pnl1" runat="server" Title="pnl 1"></ext:Panel>
<ext:Panel ID="pnl2" runat="server" Title="pnl 2"></ext:Panel>
</Items>
</ext:TabPanel>
<ext:FileUploadField
ID="fufNewImage"
IDMode="Static"
runat="server"
Width="185"
EmptyText=""
FieldLabel=""
ButtonText="">
<DirectEvents>
<Change OnEvent="fufNewImage_afterSelect" IsUpload="true" />
</DirectEvents>
</ext:FileUploadField>
<ext:Button ID="Button1" runat="server" Text="Click Me" OnDirectClick="UpdateTimeStamp" />
</form>
</body>
</html>
Last edited by fabricio.murta; Sep 01, 2017 at 10:09 PM.