Mar 22, 2011, 12:02 PM
PartialViewResult: Error Returned from Controller Action
I am trying to display a partial view however I keep getting the error message: " Microsoft JScript runtime error: 'Ext' is undefined ".
The error occurs on return from the Controller action.
Code where controller action is being called (Email.aspx):
The error occurs on return from the Controller action.
Code where controller action is being called (Email.aspx):
<ext:Button ID="FileButton" runat="server" Text="File" Icon="Add" Disabled="true">
<DirectEvents>
<Click Url="/Personal/ActionsWindow/" >
<ExtraParams>
<ext:Parameter Name="record" Value="#{GridPanel1}.getRowsValues({ selectedOnly: true })[0]"
Mode="Raw" />
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
Contoller action (PersonalController.cs): public Ext.Net.MVC.PartialViewResult ActionsWindow(String record)
{
Ext.Net.MVC.PartialViewResult p = new Ext.Net.MVC.PartialViewResult();
return p;
}
Partial View (ActionsWindow.ascx):<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:Window ID="HoldAllWindow" runat="server" Width="600" Height="400" Modal="true"
Hidden="true" Layout="Fit" Maximizable="true">
</ext:Window>