PDA

View Full Version : [CLOSED] Request Failure Dialog



msutton761
Oct 10, 2012, 10: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:

http://examples2.ext.net/#/Events/DirectEvents/Overview/



<%@ 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();
}
</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 runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager id="ResourceManage1" runat="server" IDMode="Explicit" >
<CustomDirectEvents>
<ext:DirectEvent Target="Sign-In" OnEvent="UpdateTimeStamp">
<EventMask ShowMask="true" Msg="please wait..." MinDelay="2000" />
</ext:DirectEvent>
</CustomDirectEvents>
</ext:ResourceManager>
<div>
<input type="submit" value="Sign In" alt="Sign In" name="Sign-In" id="Sign-In" />
</div>
</form>
</body>
</html>


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



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

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


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

</system.web>

<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>

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


</configuration>


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.

Daniil
Oct 11, 2012, 12:52 PM
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" ...>