|
Rank: Advanced Member Groups: Member
Joined: 6/13/2007 Posts: 32
|
Hi, I am using the callback panel in a very simple asp.net code as a module for DotNetNuke. It works fine on the local environment. But has a very odd behavior when uploading it to the server environment. The first callback is fine and does what ever it needs to do. But on the second callback it will take longer and all I am getting is a server error with no message or description of it in FireFox but using IE I am getting Wrong_Server_response and it tells me that looks like a redirect is being processed but there is nothing. Even no TRY AND CATCH clause can handle the exception on server side code. The page can be found here: http://dev.rockbridgeseminary.org/TestfromTheDNN/tabid/293/Default.aspxAny Idea ? Thanks, Aboozar The codes are as follow :
Code: Visual Basic.NET
Imports DotNetNuke
Imports System.Web.UI
Imports System.Collections.Generic
Imports System.Reflection
Namespace TheDNN.ModuleChecker
Partial Class View
Inherits Entities.Modules.PortalModuleBase
Implements Entities.Modules.IActionable
#Region "Event Handlers"
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
#End Region
#Region "Optional Interfaces"
''' -----------------------------------------------------------------------------
''' <summary>
''' Registers the module actions required for interfacing with the portal framework
''' </summary>
''' <value></value>
''' <returns></returns>
''' <remarks></remarks>
''' <history>
''' </history>
''' -----------------------------------------------------------------------------
Public ReadOnly Property ModuleActions() As Entities.Modules.Actions.ModuleActionCollection Implements Entities.Modules.IActionable.ModuleActions
Get
Dim Actions As New Entities.Modules.Actions.ModuleActionCollection
'Actions.Add(GetNextActionID, Localization.GetString(Entities.Modules.Actions.ModuleActionType.AddContent, LocalResourceFile), Entities.Modules.Actions.ModuleActionType.AddContent, "", "", EditUrl(), False, Security.SecurityAccessLevel.Edit, True, False)
Return Actions
End Get
End Property
#End Region
Protected Sub RadioButtonList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButtonList1.SelectedIndexChanged
End Sub
Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
End Sub
End Class
End Namespace
and the ascx file:
Code: HTML/ASPX
<%@ Control language="vb" Inherits="TheDNN.ModuleChecker.View" CodeFile="View.ascx.vb" AutoEventWireup="false" Explicit="True" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
<script type="text/javascript" language="javascript">
function clientside_error_handler(control, error, message)
{
alert(error);
alert(message);
}
</script>
<eo:CallbackPanel ID="CallbackPanel1" runat="server" Height="150px" Triggers="{ControlID:RadioButtonList1;Parameter:},{ControlID:DropDownList1;Parameter:}"
Width="200px" ClientSideOnError="clientside_error_handler">
<asp:Label ID="lblErr" runat="server" Font-Names="Verdana" Font-Size="12px" ForeColor="Red"></asp:Label><br />
<br />
<asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" Font-Names="Verdana" Font-Size="12px" ForeColor="#404040">
<asp:ListItem Value="0">Skins</asp:ListItem>
<asp:ListItem Value="1">Modules</asp:ListItem>
<asp:ListItem Value="2">Default</asp:ListItem>
</asp:RadioButtonList><br />
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" Width="249px" Font-Names="Verdana" Font-Size="12px" ForeColor="#404040">
<asp:ListItem Value="TopLevel">TopLevel</asp:ListItem>
<asp:ListItem>Default</asp:ListItem>
<asp:ListItem>Separator</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<asp:Label ID="Label1" runat="server" Font-Names="Verdana" Font-Size="12px" ForeColor="Green"></asp:Label></eo:CallbackPanel>
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi,
Check the CallbackPanel's ClientID on the server side and see if that changes. Most of the time such error is caused by the ID changes. When that occurs, the data posted back is unable to match the control, thus cause the error.
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 6/13/2007 Posts: 32
|
Thank you for your prompt reply.
As you can see there is absolutely no code on the server side and the Id of the callback panel is fixed. There is no way that the ID would be changed at the server side in my case.
Anything else?
Regards, Aboozar
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi,
We traced the network package and it appears that the problem has to do with Url rewrite. The page is requested as TabId/293/Default.aspx, but is posted back as Default.aspx?TabId=293. The CallbackPanel does not support any form of Url rewrite yet. So you may want to take a look of ASP.NET UpdatePanel and see if that works fine with it.
Thanks
|
|