Hello,
You need to use
DirectEventArgs
in your DirectEvent handler, and not
EventArgs
.
As well, when submitting to the forums, it really helps if you can piece together your sample into a simplified .aspx. Something we can test by copying the sample into our test project and not have to piece together your disconnected code sample.
The following demonstrates the type of code sample that is most useful to us. Providing this type of complete and simplified code sample is going to get you a much faster and more detailed response from the support team.
The sample also includes the
DirectEventArgs
fix.
Example
<%@ Page Language="C#" %>
<script runat="server">
// Ensure you using DirectEventArgs in the Event Handler
protected void Button1_Click(object sender, DirectEventArgs e)
{
this.Response.Redirect("text.aspx");
}
</script>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Ext.NET Example</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<ext:Button
runat="server"
Text="Submit"
OnDirectClick="Button1_Click"
/>
</form>
</body>
</html>
Hope this helps.