Aug 29, 2017, 4:34 AM
[CLOSED] I cannot show a window with server-side code Ext.net 4.3 version
Currently i'm using DNN 7.04.1 + ext.net 4.3 version and i have a problem for action on server-side code. But it work for Ext.net 2.5 + DNN 7.04.1
Please see my comments on ######.
Please see my comments on ######.
<script runat="server">
protected void Button2_Click(object sender, DirectEventArgs e)
{
this.Window1.Show();###### Not ok -> cannot show window and only display blank page
}
</script>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Basic Hello World Window - Ext.NET Examples</title>
<link href="/resources/css/examples.css" rel="stylesheet" />
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<h1>Simple Ext.NET Window Sample</h1>
<p>The following sample demonstrates how to configure a new Window Component and "show" the Window if closed.</p>
<ext:Button
runat="server"
Text="Show Window (Client Event)"
Icon="Application"
OnClientClick="#{Window1}.show();"####### OK
/>
<br />
<ext:Button
runat="server"
Text="Show Window (Server Event)"
Icon="Application"
OnDirectClick="Button2_Click"
/>
<ext:Window
ID="Window1"
runat="server"
Title="Hello World"
Icon="Application"
Height="185"
Width="350"
BodyStyle="background-color: #fff;"
BodyPadding="5"
Hidden="true"
Modal="true">
<Content>
This is my first <a target="_blank" href="http://ext.net/"> Ext.NET</a> Window.
</Content>
</ext:Window>
</form>
</body>
</html>
Last edited by fabricio.murta; Oct 20, 2017 at 6:07 PM.
Reason: no feedback from the user in 7+ days