Sep 23, 2011, 10:04 PM
When trying to call an ASP.NET method through DirectEvents get BADRESPONSE: Syntax error
Environment:
Ext.NET 1.2.0.21945
.NET Framework 4.0, Visiual Studio Web Developer 2010 Express, MVC 3, IIS Express, SQL Server 2005 Express
Debuging under WinXP and IE8
Problem Description:
On any direct call to a asp.net method through DirectEvents property of a Ext.Net Control, I get a Status Code:200 BADRESPONSE: Syntax error.
For Example, with code:
Title: Request Failure
Status Code: 200
Status Text: BADRESPONSE: Syntax error
A Textbox contains the web page where the Button testbtn resides (without css applied).
This error happens to each and every DirectEvents item I tried, including DirectEvents of window and treegrid.
This error happens both when the button is enclosed in <form id="someID" runat="server"></form> block and when the button is not enclosed in such a block.
After searching the forum I've tried to add AjaxRequestModule in web.config like
Is there a solution to this issue? Any feedback will be appreciated.
Ext.NET 1.2.0.21945
.NET Framework 4.0, Visiual Studio Web Developer 2010 Express, MVC 3, IIS Express, SQL Server 2005 Express
Debuging under WinXP and IE8
Problem Description:
On any direct call to a asp.net method through DirectEvents property of a Ext.Net Control, I get a Status Code:200 BADRESPONSE: Syntax error.
For Example, with code:
<ext:Button id="testbtn" runat="server" Text="test">
<DirectEvents>
<Click OnEvent="TestEvent" />
</DirectEvents>
</ext:Button>
Protected Sub TestEvent(sender As Object, e As DirectEventArgs)
MsgBox("safsadf")
End Sub
When I click the Button testbtn, a message box with text "safsadf" will be shown, and when OK is clicked, an error window like this is displayed.Title: Request Failure
Status Code: 200
Status Text: BADRESPONSE: Syntax error
A Textbox contains the web page where the Button testbtn resides (without css applied).
This error happens to each and every DirectEvents item I tried, including DirectEvents of window and treegrid.
This error happens both when the button is enclosed in <form id="someID" runat="server"></form> block and when the button is not enclosed in such a block.
After searching the forum I've tried to add AjaxRequestModule in web.config like
<system.webServer>
<modules>
<add name="DirectRequestModule" preCondition="managedHandler" type="Ext.Net.DirectRequestModule, Ext.Net" />
<add name="AjaxRequestModule" preCondition="managedHandler" type="Ext.Net.AjaxRequestModule, Ext.Net" />
</modules>
<handlers>
<add name="DirectRequestHandler" verb="*" path="*/ext.axd" preCondition="integratedMode" type="Ext.Net.ResourceHandler" />
<add name="AjaxRequestHandler" verb="*" path="*/ext.axd" preCondition="integratedMode" type="Ext.Net.ResourceHandler" />
</handlers>
</system.webServer>
and the error still happen.Is there a solution to this issue? Any feedback will be appreciated.