Aug 05, 2009, 9:03 AM
using Server.Transfer shows "The web.config file for this project is missing the required AjaxRequestModule" warning window
When trying to redirect to another web page by internal server call using
Server.Transfer
method the transfer will be done but this will show the warning window "The <code>web.config</code> file for this project is missing the required AjaxRequestModule." even if its configured correctly on the web.config.
<script type="text/VB" runat="server">
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Server.Transfer("~/WebForm1.aspx",False)
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<ext:ScriptManager ID="ScriptManager1" runat="server">
</ext:ScriptManager>
<asp:Button ID="Button2" runat="server" Text="Button" onclick="Button1_Click" />
<ext:Button ID="Button1" AutoPostBack="true" runat="server" Text="Server Transfer"
onclick="Button1_Click">
</ext:Button>
</form>
</body>
</html>
No matter who issues the redirect a coolite control or a normal ASP.NET control the message will appear.