Jul 07, 2011, 3:27 PM
[CLOSED] All tabs not declared anymore with error. It may be inaccessible due to its protection level.
Hi guys,
I'm at the point of making the modifications of my aspx. Still trying to understand the whole picture here. but I am wondering why all my tabs are not declared. Here is my code for one of my pages.
I was looking at the examples and I think a lot of things are different in EXT.NET 1.0 than what I had.
And I have weird errors where opening tags are not finding end tags (For the <table> for example, I get a warning that the opening tag has no closing tags and another warning that the end tag has no opening tag.
Thanks in advance for the help and any tips you may have for me.
Bert
I'm at the point of making the modifications of my aspx. Still trying to understand the whole picture here. but I am wondering why all my tabs are not declared. Here is my code for one of my pages.
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="soffer.aspx.vb" Inherits="uohms.soffer" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>UOHMS</title>
<!--<link href="../../../../resources/css/examples.css" rel="stylesheet" type="text/css" /> -->
<link href="./resources/css/xtheme-burntorange.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.x-grid3-td-fullName .x-grid3-cell-inner
{
font-family: tahoma, verdana;
display: block;
font-weight: normal;
font-style: normal;
color: #385F95;
white-space: normal;
}
.x-grid3-row-body p
{
margin: 5px 5px 10px 5px !important;
width: 99%;
color: Gray;
}
.data th {
font-weight: bold;
}
.data th, .data td {
padding: 4px;
border: 1px solid black;
}
</style>
<script type="text/javascript">
var customDate = function(value) {
if (value == 'Tue Jan 1 00:00:00 EST 1901') {
return '';
} else {
return Ext.util.Format.date(value, 'd/m/Y');
}
}
var fullName = function(value, metadata, record, rowIndex, colIndex, store) {
return '<b>' + record.data.LastName + ' ' + record.data.FirstName + '</b>';
};
var dutiesRenderer = function (value) {
var r = stoDuties.getById(value);
if (Ext.isEmpty(r)) {
return "";
}
return r.data.CodeValue;
}
// var updateTotalHrs = function (grid) {
// document.getElementById("txtTotalWorkHrs").value = GetColumnTotal(grdWorkInv, 1);
// };
function GetColumnTotal(grid, columnIndex) {
var total = 0,
col,
colArray = grid.view.getColumnData();
for (var rowIndex = 0, rowCount = grid.store.getCount(); rowIndex < rowCount; rowIndex++) {
var row = grid.store.getAt(rowIndex);
col = colArray[columnIndex];
total += row.get(col.name);
}
return total;
}
</script>
</head>
<body>
<form id="form" runat="server">
<ext:ResourceManager ID="ScriptManager" runat="server" />
<asp:ObjectDataSource ID="dsSessionList" runat="server" SelectMethod="GetSessionList"
TypeName="UOttawa.BusinessObjects.ConfigListCollection"
OldValuesParameterFormatString="original_{0}" >
</asp:ObjectDataSource>
<ext:Store ID="stoSessionList" runat="server" DataSourceID="dsSessionList">
<Reader>
<ext:JsonReader IDProperty="CodeName">
<Fields>
<ext:RecordField Name="CodeName" />
<ext:RecordField Name="CodeValue" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<asp:ObjectDataSource ID="dsFacultyList" runat="server" SelectMethod="GetFacultyList"
TypeName="UOttawa.BusinessObjects.ConfigListCollection"
OldValuesParameterFormatString="original_{0}" >
</asp:ObjectDataSource>
<ext:Store ID="stoFacultyList" runat="server" DataSourceID="dsFacultyList">
<Reader>
<ext:JsonReader IDProperty="CodeName">
<Fields>
<ext:RecordField Name="CodeName" />
<ext:RecordField Name="CodeValue" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<asp:ObjectDataSource ID="dsDepartmentList" runat="server" SelectMethod="GetFacultyDepartmentList"
TypeName="UOttawa.BusinessObjects.ConfigListCollection"
OldValuesParameterFormatString="original_{0}" >
<SelectParameters>
<asp:Parameter DefaultValue="" Name="FacultyCode" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<ext:Store ID="stoDepartmentList" runat="server" DataSourceID="dsDepartmentList" OnRefreshData="LoadDepartmentByFaculty">
<Reader>
<ext:JsonReader IDProperty="CodeName">
<Fields>
<ext:RecordField Name="CodeName" />
<ext:RecordField Name="CodeValue" />
</Fields>
</ext:JsonReader>
</Reader>
<Listeners>
<Load Handler="if(this.getAt(0)!=null)#{cbDepartmentList}.setValue(#{cbDepartmentList}.value);" />
</Listeners>
</ext:Store>
<asp:ObjectDataSource ID="dsJobClassList" runat="server" SelectMethod="GetJobClassListByForm"
TypeName="UOttawa.BusinessObjects.ConfigListCollection"
OldValuesParameterFormatString="original_{0}" >
<SelectParameters>
<asp:Parameter DefaultValue="C" Name="FormCode" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<ext:Store ID="stoJobClassList" runat="server" DataSourceID="dsJobClassList">
<Reader>
<ext:JsonReader IDProperty="CodeName">
<Fields>
<ext:RecordField Name="CodeName" />
<ext:RecordField Name="CodeValue" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<asp:ObjectDataSource ID="dsOfferStatusList" runat="server" SelectMethod="GetOfferStatusList"
TypeName="UOttawa.BusinessObjects.ConfigListCollection"
OldValuesParameterFormatString="original_{0}" >
<SelectParameters>
<asp:Parameter DefaultValue="C" Name="FormCode" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<ext:Store ID="stoOfferStatusList" runat="server" DataSourceID="dsOfferStatusList">
<Reader>
<ext:JsonReader IDProperty="CodeName">
<Fields>
<ext:RecordField Name="CodeName" />
<ext:RecordField Name="CodeValue" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<asp:ObjectDataSource ID="dsCourseTypeList" runat="server" SelectMethod="GetCourseTypeList"
TypeName="UOttawa.BusinessObjects.ConfigListCollection"
OldValuesParameterFormatString="original_{0}" >
</asp:ObjectDataSource>
<ext:Store ID="stoCourseTypeList" runat="server" DataSourceID="dsCourseTypeList">
<Reader>
<ext:JsonReader IDProperty="CodeName">
<Fields>
<ext:RecordField Name="CodeName" />
<ext:RecordField Name="CodeValue" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<asp:ObjectDataSource ID="dsProfCategoryList" runat="server" SelectMethod="GetProfCategoryList"
TypeName="UOttawa.BusinessObjects.ConfigListCollection"
OldValuesParameterFormatString="original_{0}" >
</asp:ObjectDataSource>
<ext:Store ID="stoProfCategoryList" runat="server" DataSourceID="dsProfCategoryList">
<Reader>
<ext:JsonReader IDProperty="CodeName">
<Fields>
<ext:RecordField Name="CodeName" />
<ext:RecordField Name="CodeValue" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<asp:ObjectDataSource ID="dsPostingTypeList" runat="server" SelectMethod="GetPostingTypeList"
TypeName="UOttawa.BusinessObjects.ConfigListCollection"
OldValuesParameterFormatString="original_{0}" >
<SelectParameters>
<asp:Parameter DefaultValue="C" Name="FormCode" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<ext:Store ID="stoPostingTypeList" runat="server" DataSourceID="dsPostingTypeList">
<Reader>
<ext:JsonReader IDProperty="CodeName">
<Fields>
<ext:RecordField Name="CodeName" />
<ext:RecordField Name="CodeValue" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<asp:ObjectDataSource ID="dsRegStatus" runat="server" SelectMethod="GetRegistStatusList"
TypeName="UOttawa.BusinessObjects.ConfigListCollection"
OldValuesParameterFormatString="original_{0}" >
</asp:ObjectDataSource>
<ext:Store ID="stoRegStatus" runat="server" DataSourceID="dsRegStatus">
<Reader>
<ext:JsonReader IDProperty="CodeName">
<Fields>
<ext:RecordField Name="CodeName" />
<ext:RecordField Name="CodeValue" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<asp:ObjectDataSource ID="dsProgramType" runat="server" SelectMethod="getprogtypelist"
TypeName="UOttawa.BusinessObjects.ConfigListCollection"
OldValuesParameterFormatString="original_{0}" >
</asp:ObjectDataSource>
<ext:Store ID="stoProgramType" runat="server" DataSourceID="dsProgramType">
<Reader>
<ext:JsonReader IDProperty="CodeName">
<Fields>
<ext:RecordField Name="CodeName" />
<ext:RecordField Name="CodeValue" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<asp:ObjectDataSource ID="dsStudentStatus" runat="server" SelectMethod="GetStudentStatusList"
TypeName="UOttawa.BusinessObjects.ConfigListCollection"
OldValuesParameterFormatString="original_{0}" >
</asp:ObjectDataSource>
<ext:Store ID="stoStudentStatus" runat="server" DataSourceID="dsStudentStatus">
<Reader>
<ext:JsonReader IDProperty="CodeName">
<Fields>
<ext:RecordField Name="CodeName" />
<ext:RecordField Name="CodeValue" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<asp:ObjectDataSource ID="dsArticleNo" runat="server" SelectMethod="GetArticlesList"
TypeName="UOttawa.BusinessObjects.ConfigListCollection"
OldValuesParameterFormatString="original_{0}" >
</asp:ObjectDataSource>
<ext:Store ID="stoArticleNo" runat="server" DataSourceID="dsArticleNo">
<Reader>
<ext:JsonReader IDProperty="CodeName">
<Fields>
<ext:RecordField Name="CodeName" />
<ext:RecordField Name="CodeValue" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<asp:ObjectDataSource ID="dsDuties" runat="server" SelectMethod="GetWorkCategoryList"
TypeName="UOttawa.BusinessObjects.ConfigListCollection"
OldValuesParameterFormatString="original_{0}" >
</asp:ObjectDataSource>
<ext:Store ID="stoDuties" runat="server" DataSourceID="dsDuties">
<Reader>
<ext:JsonReader IDProperty="CodeName">
<Fields>
<ext:RecordField Name="CodeName" />
<ext:RecordField Name="CodeValue" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<asp:ObjectDataSource ID="dsWorkInv" runat="server" SelectMethod="getWorkHours"
TypeName="UOttawa.BusinessObjects.ConfigListCollection"
OldValuesParameterFormatString="original_{0}" >
<SelectParameters>
<asp:Parameter DefaultValue="" Name="Offer_id" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
<ext:Store ID="stoWorkInv" runat="server" DataSourceID="dsWorkInv">
<Reader>
<ext:JsonReader IDProperty="CodeName">
<Fields>
<ext:RecordField Name="CodeName" />
<ext:RecordField Name="CodeValue" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
NOTE: I will post the rest in the reply since the server don't seem to like huge posts ;) (For your info I think the section above seems to be fine, the problems are all in the section below (in the reply).I was looking at the examples and I think a lot of things are different in EXT.NET 1.0 than what I had.
And I have weird errors where opening tags are not finding end tags (For the <table> for example, I get a warning that the opening tag has no closing tags and another warning that the end tag has no opening tag.
Thanks in advance for the help and any tips you may have for me.
Bert
Last edited by Daniil; Jul 08, 2011 at 8:31 PM.
Reason: [CLOSED]