View Full Version : [CLOSED] Request Failure Dialog

Oct 10, 2012, 9:35 PM
Good Afternoon,

I am having an issues with a Request Failure dialog being triggered. The DirectEvent is being called, however, it does not process the Notify dialog.
I took this from one of your Events samples:


<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void UpdateTimeStamp(object sender, DirectEventArgs e)
X.Msg.Notify("The Server Time is: ", DateTime.Now.ToLongTimeString()).Show();
<!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 runat="server">
<form id="form1" runat="server">
<ext:ResourceManager id="ResourceManage1" runat="server" IDMode="Explicit" >
<ext:DirectEvent Target="Sign-In" OnEvent="UpdateTimeStamp">
<EventMask ShowMask="true" Msg="please wait..." MinDelay="2000" />
<input type="submit" value="Sign In" alt="Sign In" name="Sign-In" id="Sign-In" />

listed below is the web config file. with the exception of my license key

<section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false"/>

<extnet licenseKey="" theme="Gray" scriptMode="Release" initScriptMode="Linked"/>

<httpRuntime requestValidationMode="2.0"/>
<trust level="Full"/>
<compilation debug="true" targetFramework="4.0" />
<authentication mode="Windows"/>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<add tagPrefix="ext" namespace="Ext.Net" assembly="Ext.Net"/>
<add name="HttpGet"/>
<add name="HttpPost"/>
<add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false"/>
<add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net"/>


<validation validateIntegratedModeConfiguration="false"/>

<remove name="ScriptModule" />
<add name="DirectRequestModule" preCondition="managedHandler" type="Ext.Net.DirectRequestModule, Ext.Net"/>


I can send you the project if necessary. Your assistance would be greatly appreciated. I have not experience this before, and I have ext.net in several other applications. Thanks.

Oct 11, 2012, 11:52 AM
Hi @msutton761,

Clicking on the submit input causes a hard post back. It breaks a DirectEvent.

<input type="submit" ...>

You can replace it with

<input type="button" ...>