Jul 01, 2012, 2:04 AM
[CLOSED] LoginView with LinkButton
Hi,
I have almost the same error as the thread bellow. The difference is that I am using a linkbutton insde the anonymous template.
http://forums.ext.net/showthread.php...oginView/page2
Thanks
I have almost the same error as the thread bellow. The difference is that I am using a linkbutton insde the anonymous template.
http://forums.ext.net/showthread.php...oginView/page2
Thanks
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void TestDirectEventHandler(object sender, DirectEventArgs e)
{
X.Msg.Alert("DirectEvent", e.ExtraParams["test"]).Show();
}
</script>
<!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">
<head id="Head1" runat="server">
<title>Ext.NET Example</title>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<asp:LoginView ID="LoginView1" runat="server">
<LoggedInTemplate>
<ext:HyperLink ID="Button1" runat="server" Text="Click Me">
<DirectEvents>
<AfterRender OnEvent="TestDirectEventHandler">
<EventMask ShowMask="true" />
<ExtraParams>
<ext:Parameter Name="test" Value="Hello!" />
</ExtraParams>
</AfterRender>
</DirectEvents>
</ext:HyperLink>
</LoggedInTemplate>
</asp:LoginView>
</form>
</body>
</html>
Last edited by Daniil; Jul 06, 2012 at 3:37 PM.
Reason: [CLOSED]