PDA

View Full Version : [CLOSED] Ext.net 2.2 deploy on windows 7 32 bit shows blank page in IE



snow_cap
Oct 27, 2013, 4:20 PM
Dears,

I deployed my ext.net 2.2 application on windows 7 32 bit,sadly whenever i try to open the application in IE 8 or 9 it displays a blank page and when right clicking view source on the page it shows a div of id "aspnethidden".

However,opening the application in google chrome it works.

Everything is configured properly like classic application pool asp.net 4.0 ,httpmodules and httphandlers and ext.net assembly is registered on the web.config.

Any ideas why the page isn't being rendered in IE?

Vladimir
Oct 27, 2013, 5:52 PM
when right clicking view source on the page it shows a div of id "aspnethidden".

Can you post generated html here?

snow_cap
Nov 16, 2013, 2:59 PM
Sorry for the late reply

The html code :


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link type="text/css" rel="stylesheet" href="/WebDnaInventory/extjs/resources/ext_theme_classic/ext-theme-classic-all-rtl-embedded-css/ext.axd?v=0" id="ext-theme" />
<link type="text/css" rel="stylesheet" href="/WebDnaInventory/extnet/resources/css/extnet-all-embedded-css/ext.axd?v=0" id="extnet-styles" />
<script type="text/javascript" src="/WebDnaInventory/extjs/ext-all-rtl-js/ext.axd?v=0"></script>
<script type="text/javascript" src="/WebDnaInventory/extnet/extnet-all-js/ext.axd?v=0"></script>

<title></title>

<style>
.Customer
{
background-image: url(images/customer.png) !important;
}

.Employee
{
background-image: url(images/Employees.png) !important;
}

.Supplier
{
background-image: url(images/Supplier.png) !important;
}

.Product
{
background-image: url(images/Product.png) !important;
}

.Stock
{
background-image: url(images/Stock.png) !important;
}

.Work
{
background-image: url(images/Truck.png) !important;
}

.Report
{
background-image: url(images/Report.png) !important;
}
.EmployeeReport
{
background-image: url(images/EmployeeReport.png) !important;
}
.WorkShop
{
background-image: url(images/WorkShop.png) !important;
}
.WorkinDays
{
background-image: url(images/WorkingDays.png) !important;
}

</style>
<script>
var menuItemClick = function (menu, item) {

App.PanelMain.load({
url: 'Grid.aspx?Type=' + menu.tag,
nocache: true,
timeout: 30,
scripts: true
});
};
var menuItemClickWork = function (menu, item) {

App.PanelMain.load({
url: 'AddCustomerTransactions.aspx?',
nocache: true,
timeout: 30,
scripts: true
});
};
function OpenReport() {
window.open("WorkReport.aspx", '_blank');
}
function OpenEmployeeReport() {
window.open("EmployeesReport.aspx", '_blank');
}
</script>

<script type="text/javascript">
//<![CDATA[
Ext.net.ResourceMgr.init({"id":"ctl02","aspForm":"form1","appName":"WebDnaInventory","rtl":true});Ext.onReady(function(){Ext.create("Ext.net.Viewport",{"rtl":true,"renderTo":Ext.get("form1"),"items":[{"id":"PanelMain","loader":{"renderer":"frame","url":"blank.aspx"},"layout":"fit","tbar":{"xtype":"toolbar","items":[{"id":"ButtonGroup1","xtype":"buttongroup","items":[{"id":"Button1","tag":"Customers","cls":"x-btn-as-arrow","iconAlign":"top","iconCls":"Customer","scale":"large","text":"الزبائن","listeners":{"click":{"fn":menuItemClick}}},{"id":"Button2","tag":"Employees","cls":"x-btn-as-arrow","iconAlign":"top","iconCls":"Employee","scale":"large","text":"الموظفين","listeners":{"click":{"fn":menuItemClick}}},{"id":"Button3","tag":"Products","cls":"x-btn-as-arrow","iconAlign":"top","iconCls":"Product","scale":"large","text":"المنتجات","listeners":{"click":{"fn":menuItemClick}}},{"id":"Button4","tag":"Suppliers","cls":"x-btn-as-arrow","hidden":true,"iconAlign":"top","iconCls":"Supplier","scale":"large","text":"الموردون","listeners":{"click":{"fn":menuItemClick}}},{"id":"Button5","tag":"Stock","cls":"x-btn-as-arrow","iconAlign":"top","iconCls":"Stock","scale":"large","text":"البضاعة","listeners":{"click":{"fn":menuItemClick}}},{"id":"Button11","tag":"StockOut","cls":"x-btn-as-arrow","iconAlign":"top","iconCls":"Stock","scale":"large","text":"بيع البضاعة","listeners":{"click":{"fn":menuItemClick}}},{"id":"Button7","tag":"WorkShop","cls":"x-btn-as-arrow","iconAlign":"top","iconCls":"WorkShop","scale":"large","text":"الورشة","listeners":{"click":{"fn":menuItemClick}}},{"id":"Button6","tag":"Work","cls":"x-btn-as-arrow","iconAlign":"top","iconCls":"Work","scale":"large","text":"عمل","listeners":{"click":{"fn":menuItemClick}}},{"id":"Button9","tag":"WorkingDays","cls":"x-btn-as-arrow","iconAlign":"top","iconCls":"WorkinDays","scale":"large","text":"الحضور الى العمل","listeners":{"click":{"fn":menuItemClick}}},{"id":"Button8","tag":"Report","cls":"x-btn-as-arrow","iconAlign":"top","iconCls":"Report","scale":"large","text":"التقارير","listeners":{"click":{"fn":function(item,e){OpenReport()}}}},{"id":"Button10","tag":"EmployeeReport","cls":"x-btn-as-arrow","iconAlign":"top","iconCls":"EmployeeReport","scale":"large","text":"تقارير الموظفين","listeners":{"click":{"fn":function(item,e){OpenEmployeeReport()}}}}],"title":"القائمة","columns":10}]}}],"layout":"fit"});});
//]]>
</script>
</head>
<body>
<form method="post" action="main.aspx" id="form1">
<div class="aspNetHidden">

</div>







</form>
</body>
</html>

Vladimir
Nov 16, 2013, 3:46 PM
Do you have any javascript errors in the browser console?

snow_cap
Nov 16, 2013, 9:17 PM
Nope already checked that nothing.On google chrome and firefox it opens normally.

Daniil
Nov 18, 2013, 5:23 AM
when right clicking view source on the page it shows a div of id "aspnethidden".

Could you, please, post that view source?

Maybe, there is some IE security option turned on which causes such the behavior?

snow_cap
Nov 18, 2013, 11:01 AM
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="WebDnaInventory.Mains" %><%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html>


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style>
.Customer
{
background-image: url(images/customer.png) !important;
}


.Employee
{
background-image: url(images/Employees.png) !important;
}


.Supplier
{
background-image: url(images/Supplier.png) !important;
}


.Product
{
background-image: url(images/Product.png) !important;
}


.Stock
{
background-image: url(images/Stock.png) !important;
}


.Work
{
background-image: url(images/Truck.png) !important;
}


.Report
{
background-image: url(images/Report.png) !important;
}
.EmployeeReport
{
background-image: url(images/EmployeeReport.png) !important;
}
.WorkShop
{
background-image: url(images/WorkShop.png) !important;
}
.WorkinDays
{
background-image: url(images/WorkingDays.png) !important;
}

</style>
<script>
var menuItemClick = function (menu, item) {


App.PanelMain.load({
url: 'Grid.aspx?Type=' + menu.tag,
nocache: true,
timeout: 30,
scripts: true
});
};
var menuItemClickWork = function (menu, item) {


App.PanelMain.load({
url: 'AddCustomerTransactions.aspx?',
nocache: true,
timeout: 30,
scripts: true
});
};
function OpenReport() {
window.open("WorkReport.aspx", '_blank');
}
function OpenEmployeeReport() {
window.open("EmployeesReport.aspx", '_blank');
}
</script>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager runat="server"></ext:ResourceManager>
<ext:Viewport runat="server" RTL="True" Layout="Fit">
<Items>
<ext:Panel runat="server" ID="PanelMain" Layout="Fit">
<TopBar>
<ext:Toolbar runat="server">
<Items>
<ext:ButtonGroup ID="ButtonGroup1" runat="server" Title="Menus" Columns="10">
<Items>
<ext:Button ID="Button1"
runat="server"
Text="Customers"
IconCls="Customer"
Scale="Large"
IconAlign="Top"
Cls="x-btn-as-arrow"
TagString="Customers">
<Listeners>
<Click Fn="menuItemClick"></Click>
</Listeners>
</ext:Button>


<ext:Button ID="Button2"
runat="server"
Text="Employees"
IconCls="Employee"
Scale="Large"
IconAlign="Top"
Cls="x-btn-as-arrow"
TagString="Employees">
<Listeners>
<Click Fn="menuItemClick"></Click>
</Listeners>
</ext:Button>
<ext:Button ID="Button3"
runat="server"
Text="Products"
IconCls="Product"
Scale="Large"
IconAlign="Top"
Cls="x-btn-as-arrow"
TagString="Products">
<Listeners>
<Click Fn="menuItemClick"></Click>
</Listeners>
</ext:Button>
<ext:Button ID="Button4"
runat="server"
Text="Suppliers"
IconCls="Supplier"
Scale="Large"
IconAlign="Top" Hidden="True"
Cls="x-btn-as-arrow"
TagString="Suppliers">
<Listeners>
<Click Fn="menuItemClick"></Click>
</Listeners>
</ext:Button>
<ext:Button ID="Button5"
runat="server"
Text="Stock"
IconCls="Stock"
Scale="Large"
IconAlign="Top"
Cls="x-btn-as-arrow"
TagString="Stock">
<Listeners>
<Click Fn="menuItemClick"></Click>
</Listeners>
</ext:Button>
<ext:Button ID="Button11"
runat="server"
Text="Stock Out"
IconCls="Stock"
Scale="Large"
IconAlign="Top"
Cls="x-btn-as-arrow"
TagString="StockOut">
<Listeners>
<Click Fn="menuItemClick"></Click>
</Listeners>
</ext:Button>
<ext:Button ID="Button7"
runat="server"
Text="WorkShop"
IconCls="WorkShop"
Scale="Large"
IconAlign="Top"
Cls="x-btn-as-arrow"
TagString="WorkShop">
<Listeners>
<Click Fn="menuItemClick"></Click>
</Listeners>
</ext:Button>
<ext:Button ID="Button6"
runat="server"
Text="Work"
IconCls="Work"
Scale="Large"
IconAlign="Top"
Cls="x-btn-as-arrow"
TagString="Work">
<Listeners>
<Click Fn="menuItemClick"></Click>
</Listeners>
</ext:Button>
<ext:Button ID="Button9"
runat="server"
Text="Employees Working Days"
IconCls="WorkinDays"
Scale="Large"
IconAlign="Top"
Cls="x-btn-as-arrow"
TagString="WorkingDays">
<Listeners>
<Click Fn="menuItemClick"></Click>
</Listeners>
</ext:Button>
<ext:Button ID="Button8"
runat="server"
Text="Report"
IconCls="Report"
Scale="Large"
IconAlign="Top"
Cls="x-btn-as-arrow"
TagString="Report">
<Listeners>
<Click Handler="OpenReport()"></Click>
</Listeners>
</ext:Button>
<ext:Button ID="Button10"
runat="server"
Text="Employees Report"
IconCls="EmployeeReport"
Scale="Large"
IconAlign="Top"
Cls="x-btn-as-arrow"
TagString="EmployeeReport">
<Listeners>
<Click Handler="OpenEmployeeReport()"></Click>
</Listeners>
</ext:Button>


</Items>
</ext:ButtonGroup>
</Items>


</ext:Toolbar>
</TopBar>
<Loader Url="blank.aspx" Mode="Frame" runat="server"></Loader>
</ext:Panel>
</Items>
</ext:Viewport>


</form>
</body>
</html>

Daniil
Nov 18, 2013, 11:58 AM
Thank you, but this is not:

when right clicking view source on the page it shows a div of id "aspnethidden".

snow_cap
Nov 19, 2013, 1:25 PM
yeah i posted that before it is


<body> <form method="post" action="main.aspx" id="form1">
<div class="aspNetHidden">

</div>







</form>
</body>

Daniil
Nov 19, 2013, 4:58 PM
Could you share the test case online, please?

We have to reproduce it to help you.