This is a migrated thread and some comments may be shown as answers.

Post back not firing unless default.aspx in URL

0 Answers 19 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
dino
Top achievements
Rank 1
dino asked on 26 Sep 2012, 07:38 PM

I have a very simple project set up.  I created it in VS2010...create Telerik Web Application.  I didn't change any of the options in the Telerik wizard.  The site has a default page on the root and one subfolder also with a default page.  

When I navigate to http://hostname everything works fine.  The default page on the root works as expected.  When I navigate to http://hostname/subfolder, the default page loads but I can't get the post back to fire.  If I navigate to http://hostname/subfolder/default.aspx it works.

This behavior does not occur on non-Telerik pages.

This behavior does not occur on the .net dev server; it occurs on IIS.

The default page is set correctly in IIS and I believe the page directive is correct.

Here is the aspx markup:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="default.aspx.vb" Inherits="TelerikWebForm" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <asp:Button ID="Button1" runat="server" Text="Button" /><asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    </div>
    </form>
</body>
</html>


Here is the code behind:

Imports Telerik.Web.UI
 
Partial Class TelerikWebForm
    Inherits System.Web.UI.Page
 
    Protected Sub Button1_Click(sender As Object, e As System.EventArgs) Handles Button1.Click
        Label1.Text = IsPostBack & " : " & Now
    End Sub
End Class


Any ideas?

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
dino
Top achievements
Rank 1
Share this question
or