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

Post back not firing unless default.aspx in URL

0 Answers 28 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
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" "">
<head runat="server">
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <%--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" />
    <script type="text/javascript">
        //Put your JavaScript code here.
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <asp:Button ID="Button1" runat="server" Text="Button" /><asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

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?

General Discussions
Asked by
Top achievements
Rank 1
Share this question