将应用程序从1.1转换为框架2.0时出错 [英] Error in converting app from 1.1 to framework 2.0

查看:165
本文介绍了将应用程序从1.1转换为框架2.0时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将一个

应用程序从dotnet framework 1.1转换为framework 2.0时,我不断遇到错误。旧项目

保存在Visual Studio 2003的sourcesafe中,我在

Visual Studio 2005中打开它。


我已经清理了大多数错误,但是有一个错误,但是我有一个错误。


我有一个页面:


销售额/Item.aspx中包含多个数据网格。


<%@ Page Language =" vb" AutoEventWireup = QUOT;真" Inherits =" test.Item"

CodeFile =" Item.aspx.vb" %>

< HTML>

< HEAD>

< / HEAD>

< body bgColor =" #c9c7a6">

< DIV align =" left">

< form runat =" server">

< TABLE id =" Table1"高度= QUOT; 28" CELLSPACING = QUOT 1 QUOT; cellPadding =" 1"

border =" 0">

< TR>

< TD width =" 700" ;>< asp:label id =" lblTitle" runat =" server"

Font-Bold =" True"字体尺寸= QUOT;大型" ForeColor =" Black

Width =" 572px">< / asp:label>< / TD>

< TD>< asp: button id =" btnReports" onclick =" btnReports_OnClick"

runat =" server"前景色= QUOT;白色"宽度= QUOT; 135px" Text =" Reports Menu"

BackColor ="#214915">< / asp:button>< / TD>

< / TR>

< / TABLE>

< font color =" white">

< TABLE id =" Table2"高度= QUOT; 25" CELLSPACING = QUOT 1 QUOT; cellPadding =" 1"

border =" 0">

< TR>

< TD>< asp: label id =" label1" RUNAT = QUOT;服务器" Font-Bold =True

字体大小=" X-Small"前景色= QUOT;黑色"宽度= QUOT; 554px" BackColor =" #C9C7A6"

BorderColor ="#C9C7A6">< / asp:label>< / TD>

< / TR> < br $>
< / TABLE>

< TABLE id =" Table3"高度= QUOT; 44" CELLSPACING = QUOT 1 QUOT; cellPadding =" 1"

width =" 681" border =" 0">

< TR>

< TD>

< P align =" right"> ;< FONT color =" black" size =" 4">< STRONG>搜索

条件< / STRONG>< / FONT>< / P>

< / TD>

< TD width =" 165">< asp:textbox id =" txtSearch"

runat =" server">< / asp: textbox>< / TD>

< TD>< asp:button id =" btnSearch"的onclick = QUOT;&的Page_Load QUOT; runat =" server"

ForeColor =" White"文本= [搜寻" BackColor ="#214915">< / asp:button>< / TD>

< / TR>

< / TABLE>

< P align =" center">

< / font>

< TABLE id =" Table4" Table4" CELLSPACING = QUOT; 0" CELLPADDING = QUOT; 0" width =" 800"

bgColor ="#214915" border =" 0">

< TR>

< TD width =" 548" bgColor ="#214915">

< P align =" left">< asp:radiobuttonlist id =" rbtnAmmo" runat =" server"

字体大小="小"前景色= QUOT;白色"宽度= QUOT; 245px" BackColor ="#214915"

Visible =" False"的AutoPostBack = QUOT;真" RepeatDirection =" Horizo​​ntal">

< asp:ListItem Value =" Rounds" Selected =" True"> Units< / asp:ListItem>

< asp:ListItem Value =" Boxes"> Boxes< / asp:ListItem>

< asp:ListItem Value =" Cases" Cases< / asp:ListItem>

< / asp:radiobuttonlist>< asp:radiobuttonlist id =" rbtnSpecial"

runat =" server"前景色= QUOT;白色"宽度= QUOT; 382px" BackColor ="#214915"

Visible =" False"的AutoPostBack = QUOT;真" RepeatDirection =" Horizo​​ntal">

< asp:ListItem Value =" No" Selected =" True"> Ship To< / asp:ListItem>

< asp:ListItem Value =" Sold"> Sold To< / asp:ListItem>

< asp:ListItem Value =" Con"> Consolidated< / asp:ListItem>

< / asp:radiobuttonlist>< / P>

< / TD>

< TD vAlign =" bottom" bgColor ="#214915">

< P align =" right">< asp:radiobuttonlist id =" rbtnExceptions"

runat =" ;服务器"前景色= QUOT;白色"背景色= QUOT;#214915" Visible =False

AutoPostBack =" True" RepeatDirection =" Horizo​​ntal">

< asp:ListItem Value =" All" Selected =" True"> WorldWide< / asp:ListItem>

< asp:ListItem Value =" Samples"> Samples< / asp:ListItem>

< / asp:radiobuttonlist>< / P>

< / TD>

< / TR>

< /表>

< p align =" left">

< asp:datagrid id =" DataGrid1" RUNAT = QUOT;服务器"字体大小=X小

宽度=" 800px"背景色= QUOT;白色" BORDERCOLOR ="#CCCCCC" BorderStyle =" None"

OnSelectedIndexChanged =" DataGrid1_Select" DataKeyField ="产品代码"

AutoGenerateColumns =" False"边框宽度= QUOT; 1px的" CellPadding =" 3"

EnableViewState =" False">

< SelectedItemStyle ForeColor =" Black"

BackColor =" ;白色">< / SelectedItemStyle>

< AlternatingItemStyle BackColor =" PapayaWhip">< / AlternatingItemStyle>

< ItemStyle ForeColor ="# 000066" BackColor =" Moccasin">< / ItemStyle>

< HeaderStyle Font-Bold =" True" ForeColor =" Black"
BackColor =" Gainsboro"< / HeaderStyle>

< FooterStyle ForeColor ="#000066" BackColor =" White">< / FooterStyle>

< Columns>

< asp:ButtonColumn Text =" Button" DataTextField =" Product Code"

HeaderText =" Product Code" CommandName =" select">< / asp:ButtonColumn>

< asp:BoundColumn Visible =" False" DataField =" Product Code"

HeaderText =" Product Code">< / asp:BoundColumn>

< asp:BoundColumn DataField =" Material No" ; HeaderText =" Material

#">< / asp:BoundColumn>

< asp:BoundColumn DataField =" Description"

HeaderText =" Description">< / asp:BoundColumn>

< asp:BoundColumn DataField =" Qty" HeaderText =" Qty">

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle>

< / asp:BoundColumn>

< asp:BoundColumn DataField =" Price" HeaderText =" Price"

DataFormatString =" {0:C}">

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle> ;

< / asp:BoundColumn>

< asp:BoundColumn DataField =" UPC Code" HeaderText =" UPC

Code">< / asp:BoundColumn>

< asp:BoundColumn DataField =" Weight" HeaderText =" Weight"

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle>

< / asp:BoundColumn>

< / Columns>

< PagerStyle Horizo​​ntalAlign =" Left" ForeColor ="#000066"

BackColor =" White" Mode =" NumericPages">< / PagerStyle>

< / asp:datagrid>< / P>

< P align =" left" >< asp:datagrid id =" DataGrid5" runat =" server"

字体大小=" X-Small"宽度= QUOT; 800像素" BackColor =White

BorderColor =" #CCCCCC" BorderStyle =" None"

OnSelectedIndexChanged =" DataGrid5_Select" DataKeyField =" SKU"

AutoGenerateColumns =" False"边框宽度= QUOT; 1px的" CellPadding =" 3"

ShowFooter =" True" OnItemDataBound =" MyDataGrid_ItemDataBound"

AllowSorting =" True" OnSortCommand =" DataGrid5_Sort">

< SelectedItemStyle ForeColor =" Black"

BackColor =" White">< / SelectedItemStyle>

< AlternatingItemStyle BackColor =" PapayaWhip">< / AlternatingItemStyle>

< ItemStyle ForeColor ="#000066" BackColor =" Moccasin">< / ItemStyle>

< HeaderStyle Font-Bold =" True" ForeColor =" Black"
BackColor =" Gainsboro"< / HeaderStyle>

< FooterStyle ForeColor ="#000066" BackColor =" Tan">< / FooterStyle>

< Columns>

< asp:ButtonColumn Text =" Button" DataTextField =" materialnumber"

SortExpression =" materialnumber" HeaderText =" Material#"

CommandName =" select">

< HeaderStyle Width =" 60px">< / HeaderStyle>

< ItemStyle Width =" 60px">< / ItemStyle>

< / asp:ButtonColumn>

< asp:BoundColumn Visible =" False">< / asp:BoundColumn>

< asp:BoundColumn Visible =" False" DataField =" SKU"

< asp:BoundColumn Visible =" False">< / asp:BoundColumn>

< asp:BoundColumn DataField =" productcode"

SortExpression =" productcode" HeaderText =" Product Code"

< HeaderStyle Width =" 60px">< / HeaderStyle>

< ItemStyle Width =" 60px" >< / ItemStyle>

< / asp:BoundColumn>

< asp:BoundColumn DataField =" Description"

SortExpression = QUOT;描述" HeaderText =" Description">

< HeaderStyle Width =" 180px">< / HeaderStyle>

< ItemStyle Width =" 180px"> ;< / ItemStyle>

< / asp:BoundColumn>

< asp:BoundColumn DataField =" Order Qty" SortExpression =" Order Qty"
HeaderText =" Order Qty" DataFormatString =" {0:n0}">

< HeaderStyle Horizo​​ntalAlign =" Right" Width =" 80px">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right" Width =" 80px">< / ItemStyle>

< / asp:BoundColumn>

< asp:BoundColumn DataField =" Ship Qty" SortExpression =" Ship Qty"
HeaderText =" Ship Qty" DataFormatString =" {0:n0}">

< HeaderStyle Horizo​​ntalAlign =" Right" Width =" 80px">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right" Width =" 80px">< / ItemStyle>

< / asp:BoundColumn>

< asp:BoundColumn DataField =" Open Qty" SortExpression =Open Qty

HeaderText =" Open Qty" DataFormatString =" {0:n0}">

< HeaderStyle Horizo​​ntalAlign =" Right" Width =" 80px">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right" Width =" 80px">< / ItemStyle>

< / asp:BoundColumn>

< asp:BoundColumn DataField =" $ - Order" SortExpression =" $ - Order"

HeaderText =" $ - Ordered">

< HeaderStyle Horizo​​ntalAlign =" Right" Width =" 80px">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right" Width =" 80px">< / ItemStyle>

< FooterStyle Horizo​​ntalAlign =" Right">< / FooterStyle>

< / asp: BoundColumn>

< asp:BoundColumn DataField =" $ - Ship" SortExpression =" $ - Ship"

HeaderText =" $ - Shipped">

< HeaderStyle Horizo​​ntalAlign =" Right" Width =" 80px">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right" Width =" 80px">< / ItemStyle>

< FooterStyle Horizo​​ntalAlign =" Right">< / FooterStyle>

< / asp: BoundColumn>

< asp:BoundColumn DataField =" $ - Open" SortExpression =" $ - Open"

HeaderText =" $ - Open">

< HeaderStyle Horizo​​ntalAlign =" Right" Width =" 80px">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right" Width =" 80px">< / ItemStyle>

< FooterStyle Horizo​​ntalAlign =" Right">< / FooterStyle>

< / asp: BoundColumn>

< / Columns>

< PagerStyle Horizo​​ntalAlign =" Left" ForeColor ="#000066"

BackColor =" White" Mode =" NumericPages">< / PagerStyle>

< / asp:datagrid>< / P>

< P align =" left" >< asp:datagrid id =" DGCustomer" runat =" server"

字体大小=" X-Small"宽度= QUOT; 800像素" BackColor =White

BorderColor =" #CCCCCC" BorderStyle =" None"

OnSelectedIndexChanged =" DGCustomer_Select" DataKeyField =" Customer#"

AutoGenerateColumns =" False"边框宽度= QUOT; 1px的" CellPadding =" 3"

AllowSorting =" True" OnSortCommand =" DGCustomer_Sort">

< SelectedItemStyle ForeColor =" Black"

BackColor =" White">< / SelectedItemStyle>

< AlternatingItemStyle BackColor =" PapayaWhip">< / AlternatingItemStyle>

< ItemStyle ForeColor ="#000066" BackColor =" Moccasin">< / ItemStyle>

< HeaderStyle Font-Bold =" True" ForeColor =" Black"
BackColor =" Gainsboro"< / HeaderStyle>

< FooterStyle ForeColor ="#000066" BackColor =" Tan">< / FooterStyle>

< Columns>

< asp:ButtonColumn Text =" button" DataTextField =" Sold To Name"

SortExpression =" Sold To Name" HeaderText =" Sold To Name"

CommandName =" Select">

< ItemStyle Width =" 125px">< / ItemStyle>

< / asp:ButtonColumn>

< asp:BoundColumn Visible =" False" DataField =" Customer#"

HeaderText =" Customer#">< / asp:BoundColumn>

< asp:BoundColumn Visible ="假" DataField =" Sold To Name"

SortExpression =" Sold To Name" HeaderText =" Sold To Name">< / asp:BoundColumn>

< asp:BoundColumn DataField =" Ship To Name" SortExpression =" Ship To

Name" HeaderText =" Ship To Name">< / asp:BoundColumn>

< asp:BoundColumn DataField =" Sold To" SortExpression =" Sold To"

HeaderText =" Sold To">< / asp:BoundColumn>

< asp:BoundColumn DataField =" Ship To" ; SortExpression =" Ship To"

HeaderText =" Ship To">< / asp:BoundColumn>

< asp:BoundColumn DataField =" Channel" SortExpression =" Channel"
HeaderText =" DC">< / asp:BoundColumn>

< asp:BoundColumn DataField =" Sales Group" SortExpression =" Sales

Group" HeaderText =" Sales Group"< / asp:BoundColumn>

< asp:BoundColumn DataField =" Sales Rep" SortExpression =" Sales Rep"
HeaderText =" Sales Rep"< / asp:BoundColumn>

< asp:BoundColumn DataField =" Address" SortExpression =" Address"

HeaderText =" Address">< / asp:BoundColumn>

< asp:BoundColumn DataField ="电话号码" SortExpression =" Phone

Number" HeaderText =" Phone Number">< / asp:BoundColumn>

< asp:BoundColumn DataField =" Contact Name" SortExpression ="联系

名称" HeaderText =" Contact Name"< / asp:BoundColumn>

< asp:BoundColumn DataField ="联系电话"

SortExpression ="联系电话" ; HeaderText =" Contact#">< / asp:BoundColumn>

< / Columns>

< PagerStyle Horizo​​ntalAlign =" Left" ForeColor ="#000066"

BackColor =" White" Mode =" NumericPages">< / PagerStyle>

< / asp:datagrid>< / P>

< P align =" left" >< asp:datagrid id =" DGPOClass" runat =" server"

字体大小=" X-Small"背景色= QUOT;白色" BorderColor =" #CCCCCC"

BorderStyle =" None" OnSelectedIndexChanged =" DGPOClass_Select"

DataKeyField =" Class"的AutoGenerateColumns = QUOT假QUOT; BorderWidth =" 1px"

CellPadding =" 3" ShowFooter =" True"

OnItemDataBound =" MyDataGrid_ItemDataBound1" width =" 800px"

OnPageIndexChanged =" DGPOClass_Page" PageSize =" 6">

< SelectedItemStyle ForeColor =" Black"

BackColor =" White">< / SelectedItemStyle>

< AlternatingItemStyle BackColor =" PapayaWhip">< / AlternatingItemStyle>

< ItemStyle ForeColor ="#000066" BackColor =" Moccasin">< / ItemStyle>

< HeaderStyle Font-Bold =" True" ForeColor =" Black"
BackColor =" Gainsboro"< / HeaderStyle>

< FooterStyle ForeColor ="#000066" BackColor =" Tan">< / FooterStyle>

< Columns>

< asp:ButtonColumn DataTextField =" class" HeaderText =" PO

分类" CommandName =" Select">

< HeaderStyle Wrap =" False">< / HeaderStyle>

< ItemStyle Width =" 125px"> ;< / ItemStyle>

< / asp:ButtonColumn>

< asp:BoundColumn Visible =" False" DataField =" class"

HeaderText =" Class">

< HeaderStyle Wrap =" False">< / HeaderStyle>

< ItemStyle Width =" 160px">< / ItemStyle>

< / asp:BoundColumn>

< asp:BoundColumn Visible = " False">< / asp:BoundColumn>

< asp:BoundColumn Visible =" False">< / asp:BoundColumn>

< ; asp:BoundColumn Visible =" False">< / asp:BoundColumn>

< asp:BoundColumn DataField =" Orders" HeaderText ="#">

< HeaderStyle Wrap =" False" Horizo​​ntalAlign =" Right">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right" Width =" 80px">< / ItemStyle>

< FooterStyle Horizo​​ntalAlign =" Right">< / FooterStyle>

< / asp: BoundColumn>

< asp:BoundColumn DataField =" orderval" HeaderText =" $ - Ordered">

< HeaderStyle Wrap =" False" Horizo​​ntalAlign =" Right">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle>

< FooterStyle Horizo​​ntalAlign = "">< / FooterStyle>

< / asp:BoundColumn>

< asp:BoundColumn DataField =" shipval" HeaderText =" $ - Shipped">

< HeaderStyle Wrap =" False" Horizo​​ntalAlign =" Right">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle>

< FooterStyle Horizo​​ntalAlign = " Right">< / FooterStyle>

< / asp:BoundColumn>

< asp:BoundColumn DataField =" openval" HeaderText =" $ - Open">

< HeaderStyle Wrap =" False" Horizo​​ntalAlign =" Right">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle>

< FooterStyle Horizo​​ntalAlign = " Right">< / FooterStyle>

< / asp:BoundColumn>

< asp:BoundColumn DataField ="" HeaderText =" $ - Assigned">

< HeaderStyle Wrap =" False" Horizo​​ntalAlign =" Right">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle>

< FooterStyle Horizo​​ntalAlign = " Right">< / FooterStyle>

< / asp:BoundColumn>

< asp:BoundColumn DataField =" unassigned" HeaderText =" $ - Unassigned">

< HeaderStyle Wrap =" False" Horizo​​ntalAlign =" Right">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle>

< FooterStyle Horizo​​ntalAlign = " Right">< / FooterStyle>

< / asp:BoundColumn>

< / Columns>

< PagerStyle Horizo​​ntalAlign = QUOT;左" ForeColor ="#000066"

BackColor =" White" Mode =" NumericPages">< / PagerStyle>

< / asp:datagrid>< / P>

< P align =" left" >< asp:datagrid id =" DGPOList" runat =" server"

字体大小=" X-Small"背景色= QUOT;白色" BorderColor =" #CCCCCC"

BorderStyle =" None" OnSelectedIndexChanged =" DGPOList_Select"

DataKeyField =" ponr"的AutoGenerateColumns = QUOT假QUOT; BorderWidth =" 1px"

CellPadding =" 3" ShowFooter =" True"

OnItemDataBound =" MyDataGrid_ItemDataBound1" AllowSorting =" True"

OnSortCommand =" DGPOList_Sort" width =" 800px"

OnPageIndexChanged =" DGPOClass_Page" PageSize =" 6">

< SelectedItemStyle ForeColor =" Black"

BackColor =" White">< / SelectedItemStyle>

< AlternatingItemStyle BackColor =" PapayaWhip">< / AlternatingItemStyle>

< ItemStyle ForeColor ="#000066" BackColor =" Moccasin">< / ItemStyle>

< HeaderStyle Font-Bold =" True" ForeColor =" Black"
BackColor =" Gainsboro"< / HeaderStyle>

< FooterStyle ForeColor ="#000066" BackColor =" Tan">< / FooterStyle>

< Columns>

< asp:ButtonColumn Text =" button" DataTextField =" ponr"

SortExpression =" ponr" HeaderText =PO# CommandName =" Select">

< HeaderStyle Wrap =" False">< / HeaderStyle>

< ItemStyle Width =" 125px"> ;< / ItemStyle>

< / asp:ButtonColumn>

< asp:BoundColumn DataField =" Order-dt" SortExpression =" Order-dt"

HeaderText =" Order Date">< / asp:BoundColumn>

< asp:BoundColumn DataField =" rdd" ; SortExpression =" rdd"

HeaderText =" Req''d Delv Date">< / asp:BoundColumn>

< asp:BoundColumn DataField =" ; Last Ship-Dt" SortExpression =" Last

Ship-Dt" HeaderText =最后发货日期>

< ItemStyle Width =" 80px">< / ItemStyle>

< / asp:BoundColumn>

< asp:BoundColumn DataField =" LastInvoice"

SortExpression =" LastInvoice" HeaderText =" Last Invoice#">< / asp:BoundColumn>

< asp:BoundColumn DataField =" shipment" SortExpression =" shipping"

HeaderText ="#">

< HeaderStyle Wrap =" False" Horizo​​ntalAlign =" Right">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle>

< FooterStyle Horizo​​ntalAlign = " Right">< / FooterStyle>

< / asp:BoundColumn>

< asp:BoundColumn DataField =" orderval" SortExpression =" orderval"

HeaderText =" $ - Ordered">

< HeaderStyle Horizo​​ntalAlign =" Right">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle>

< FooterStyle Horizo​​ntalAlign =" Right">< / FooterStyle>

< / asp:BoundColumn>

< asp:BoundColumn DataField =" shipval" SortExpression =" shipval"

HeaderText =" $ - Shipped">

< HeaderStyle Horizo​​ntalAlign =" Right">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle>

< FooterStyle Horizo​​ntalAlign =" Right">< / FooterStyle>

< / asp:BoundColumn>

< asp:BoundColumn DataField =" openval" SortExpression =" openval"

HeaderText =" $ - Open">

< HeaderStyle Horizo​​ntalAlign =" Right">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle>

< FooterStyle Horizo​​ntalAlign =" Right">< / FooterStyle>

< / asp:BoundColumn>

< asp:BoundColumn DataField ="已分配" SortExpression =" assigned"

HeaderText =" $ - Assigned">

< HeaderStyle Horizo​​ntalAlign =" Right">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle>

< FooterStyle Horizo​​ntalAlign =" Right">< / FooterStyle>

< / asp:BoundColumn>

< asp:BoundColumn DataField =" unassigned"

SortExpression =" unassigned" HeaderText =" $ - Unassigned">

< HeaderStyle Horizo​​ntalAlign =" Right">< / HeaderStyle>

< ItemStyle Horizo​​ntalAlign =" Right" ;>< / ItemStyle>

< FooterStyle Horizo​​ntalAlign =" Right">< / FooterStyle>

< / asp:BoundColumn>

< / Columns>

< PagerStyle Horizo​​ntalAlign =" Left" ForeColor ="#000066"

BackColor =" White" Mode =" NumericPages">< / PagerStyle>

< / asp:datagrid>< / P>

< DIV align =" left" >< asp:datagrid id =" DGBOL" runat =" server"

字体大小=" X-Small"宽度= QUOT; 800像素" BackColor =White

BorderColor =" #CCCCCC"边框= QUOT;无" AutoGenerateColumns =" False"

BorderWidth =" 1px" CellPadding =" 3"

< SelectedItemStyle ForeColor =" White"

BackColor ="#669999">< / SelectedItemStyle>

< ItemStyle ForeColor ="#000066">< / ItemStyle>

< HeaderStyle Font-Bold =" True" ForeColor =" Black"
BackColor =" Gainsboro"< / HeaderStyle>

< FooterStyle ForeColor ="#000066" BackColor =" White">< / FooterStyle>

< Columns>

< asp:BoundColumn DataField =" bill_of_lading" HeaderText =" Bill Of

Lading">< / asp:BoundColumn>

< asp:BoundColumn DataField =" pro_number" HeaderText =" Pro

#">< / asp:BoundColumn>

< asp:BoundColumn DataField =" carrier_id"

HeaderText =" Carrier">< / asp:BoundColumn>

< asp:BoundColumn DataField =" committed_qty" HeaderText =" Assigned

数量" DataFormatString =" {0:#,###}">

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle>

< ; / asp:BoundColumn>

< asp:BoundColumn DataField =" committed_val" HeaderText =" Assigned

Val" DataFormatString =" {0:c0}">

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle>

< / asp: BoundColumn>

< asp:BoundColumn Visible =" False" DataField =" delv_note_qty"

HeaderText =" Delv Note Qty">

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle>

< / asp:BoundColumn>

< asp:BoundColumn Visible =" False" DataField =" delv_note_val"

HeaderText =" Delv Note Val"

< ItemStyle Horizo​​ntalAlign =" Right">< / ItemStyle>

< / asp:BoundColumn>

< / Columns>

< PagerStyle Horizo​​ntalAlign =" Left" ForeColor ="#000066"

BackColor =" White" Mode =" NumericPages">< / PagerStyle>

< / asp:datagrid>< / DIV>

< DIV align =" center" >& nbsp;< / DIV>

< DIV align =" left">& nbsp;

< asp:literal id =" ;我的编目" runat =" server">< / asp:literal>< / DIV>

< H2 align =" center">< asp:label id =" lblErrorMsg" runat="server"

Visible="False">DESC</asp:label>&nbsp;

<asp:textbox id="txtSoldTo" RUNAT = QUOT;服务器" Width="16px"

Visible="False"></asp:textbox>&nbsp;&nbsp;

<asp:textbox id="txtShipTo" RUNAT = QUOT;服务器" Width="16px"

Visible="False"></asp:textbox><asp:textbox id="txtDC" runat="server"

Width="16px" Visible="False"></asp:textbox><asp:textbox id="txtDG1"

runat="server" Width="148px" Visible="False"></asp:textbox><asp:textbox

id="TxtDG2" RUNAT = QUOT;服务器" Width="97px"

Visible="False"></asp:textbox><asp:textbox id="txtDGCustomer"

runat="server" Width="75px" Visible="False"></asp:textbox><asp:textbox

id="TxtDG4" RUNAT = QUOT;服务器" Width="181px"

Visible="False"></asp:textbox><asp:textbox id="TxtDG3" runat="server"

Width="22px" Visible="False"></asp:textbox><asp:textbox id="txtDG5"

runat="server" Width="181px" Visible="False"></asp:textbox><asp:textbox

id="txtDG6" RUNAT = QUOT;服务器" Width="181px"

Visible="False"></asp:textbox><FONT color="white"><asp:textbox

id="txtDGPOList" RUNAT = QUOT;服务器" Width="181px"

Visible="False"></asp:textbox><asp:label id="lblPO" runat="server"

ForeColor="Black" BackColor="White"

Visible="False">PO’’s</asp:label>&nbsp;</FONT>

<asp:dropdownlist id="cmbPO" runat="server"

OnSelectedIndexChanged="cmbPO_SelectedIndexChanged " Visible="False"

DataTextField="pon"

DataValueField="po"></asp:dropdownlist>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;

<asp:textbox id="txtPO" runat="server"

Visible="False"></asp:textbox>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<asp:button id="btnSubmit" onclick="btnSubmit_Click" runat="server"

ForeColor="White" Text="Submit" BackColor="#006699"

Visible="False"></asp:button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

&nbsp;

<asp:button id="Button1" onclick="btnReports_OnClick"

runat="server" Text="Reports Menu"

Visible="False"></asp:button><asp:textbox id="Textbox1" runat="server"

Visible="False"></asp:textbox></H2>

<P align="center"></P>

</form>

</DIV>

<!-- Insert content here -->

</body>

</HTML>

In Visual Studio 2005, on the Solution Explorer, I have a Sales folder

and under that, I show Item.aspx with a plus sign next to it. If I

click the plus sign, Item.aspx.vb. If I open Item.aspx, and click "View

Code" it opens the Item.aspx.vb codefile.


However, the errors that I get when I try to compile the application are:


’’DataGrid5_Sort’’ is not a member of ’’ASP.sales_item_aspx’’.

’’MyDataGrid_ItemDataBound’’ is not a member of ’’ASP.sales_item_aspx’’

’’DataGrid5_Select’’ is not a member of ’’ASP.sales_item_aspx’’.


and so on.


I’’ve looked for this error message, and it says that it may be some

references to 1.1 framework in there, but I’’ve not been able to find them.


This has frustrated me to no end the last 4 days, and every time I think

I have found the problem, nothing fixes it.


Anyone have any idea why this is doing this? All the errors are in 1

page in the entire application, but I have a sinking feeling that as

soon as I fix these, there will be a dozen more errors to take their place.


Any advice, suggestions appreciated.


BC

I keep getting errors that pop up when I am trying to convert an
application from dotnet framework 1.1 to framework 2.0. The old project
was saved in sourcesafe from Visual Studio 2003, and I have opened it in
Visual Studio 2005.

I''ve cleared up most errors, but have one that beats the heck out of me.

I have a page:

sales/Item.aspx that has several datagrids in it.

<%@ Page Language="vb" AutoEventWireup="true" Inherits="test.Item"
CodeFile="Item.aspx.vb" %>
<HTML>
<HEAD>
</HEAD>
<body bgColor="#c9c7a6">
<DIV align="left">
<form runat="server">
<TABLE id="Table1" height="28" cellSpacing="1" cellPadding="1"
border="0">
<TR>
<TD width="700"><asp:label id="lblTitle" runat="server"
Font-Bold="True" Font-Size="Large" ForeColor="Black"
Width="572px"></asp:label></TD>
<TD><asp:button id="btnReports" onclick="btnReports_OnClick"
runat="server" ForeColor="White" Width="135px" Text="Reports Menu"
BackColor="#214915"></asp:button></TD>
</TR>
</TABLE>
<font color="white">
<TABLE id="Table2" height="25" cellSpacing="1" cellPadding="1"
border="0">
<TR>
<TD><asp:label id="label1" runat="server" Font-Bold="True"
Font-Size="X-Small" ForeColor="Black" Width="554px" BackColor="#C9C7A6"
BorderColor="#C9C7A6"></asp:label></TD>
</TR>
</TABLE>
<TABLE id="Table3" height="44" cellSpacing="1" cellPadding="1"
width="681" border="0">
<TR>
<TD>
<P align="right"><FONT color="black" size="4"><STRONG>Search
Criteria</STRONG></FONT></P>
</TD>
<TD width="165"><asp:textbox id="txtSearch"
runat="server"></asp:textbox></TD>
<TD><asp:button id="btnSearch" onclick="page_load" runat="server"
ForeColor="White" Text="Search" BackColor="#214915"></asp:button></TD>
</TR>
</TABLE>
<P align="center">
</font>
<TABLE id="Table4" cellSpacing="0" cellPadding="0" width="800"
bgColor="#214915" border="0">
<TR>
<TD width="548" bgColor="#214915">
<P align="left"><asp:radiobuttonlist id="rbtnAmmo" runat="server"
Font-Size="Small" ForeColor="White" Width="245px" BackColor="#214915"
Visible="False" AutoPostBack="True" RepeatDirection="Horizontal">
<asp:ListItem Value="Rounds" Selected="True">Units</asp:ListItem>
<asp:ListItem Value="Boxes">Boxes</asp:ListItem>
<asp:ListItem Value="Cases">Cases</asp:ListItem>
</asp:radiobuttonlist><asp:radiobuttonlist id="rbtnSpecial"
runat="server" ForeColor="White" Width="382px" BackColor="#214915"
Visible="False" AutoPostBack="True" RepeatDirection="Horizontal">
<asp:ListItem Value="No" Selected="True">Ship To</asp:ListItem>
<asp:ListItem Value="Sold">Sold To</asp:ListItem>
<asp:ListItem Value="Con">Consolidated</asp:ListItem>
</asp:radiobuttonlist></P>
</TD>
<TD vAlign="bottom" bgColor="#214915">
<P align="right"><asp:radiobuttonlist id="rbtnExceptions"
runat="server" ForeColor="White" BackColor="#214915" Visible="False"
AutoPostBack="True" RepeatDirection="Horizontal">
<asp:ListItem Value="All" Selected="True">WorldWide</asp:ListItem>
<asp:ListItem Value="Samples">Samples</asp:ListItem>
</asp:radiobuttonlist></P>
</TD>
</TR>
</TABLE>
<p align="left">
<asp:datagrid id="DataGrid1" runat="server" Font-Size="X-Small"
Width="800px" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None"
OnSelectedIndexChanged="DataGrid1_Select" DataKeyField="Product code"
AutoGenerateColumns="False" BorderWidth="1px" CellPadding="3"
EnableViewState="False">
<SelectedItemStyle ForeColor="Black"
BackColor="White"></SelectedItemStyle>
<AlternatingItemStyle BackColor="PapayaWhip"></AlternatingItemStyle>
<ItemStyle ForeColor="#000066" BackColor="Moccasin"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="Black"
BackColor="Gainsboro"></HeaderStyle>
<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
<Columns>
<asp:ButtonColumn Text="Button" DataTextField="Product Code"
HeaderText="Product Code" CommandName="select"></asp:ButtonColumn>
<asp:BoundColumn Visible="False" DataField="Product Code"
HeaderText="Product Code"></asp:BoundColumn>
<asp:BoundColumn DataField="Material No" HeaderText="Material
#"></asp:BoundColumn>
<asp:BoundColumn DataField="Description"
HeaderText="Description"></asp:BoundColumn>
<asp:BoundColumn DataField="Qty" HeaderText="Qty">
<ItemStyle HorizontalAlign="Right"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Price" HeaderText="Price"
DataFormatString="{0:C}">
<ItemStyle HorizontalAlign="Right"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="UPC Code" HeaderText="UPC
Code"></asp:BoundColumn>
<asp:BoundColumn DataField="Weight" HeaderText="Weight">
<ItemStyle HorizontalAlign="Right"></ItemStyle>
</asp:BoundColumn>
</Columns>
<PagerStyle HorizontalAlign="Left" ForeColor="#000066"
BackColor="White" Mode="NumericPages"></PagerStyle>
</asp:datagrid></P>
<P align="left"><asp:datagrid id="DataGrid5" runat="server"
Font-Size="X-Small" Width="800px" BackColor="White"
BorderColor="#CCCCCC" BorderStyle="None"
OnSelectedIndexChanged="DataGrid5_Select" DataKeyField="SKU"
AutoGenerateColumns="False" BorderWidth="1px" CellPadding="3"
ShowFooter="True" OnItemDataBound="MyDataGrid_ItemDataBound"
AllowSorting="True" OnSortCommand="DataGrid5_Sort">
<SelectedItemStyle ForeColor="Black"
BackColor="White"></SelectedItemStyle>
<AlternatingItemStyle BackColor="PapayaWhip"></AlternatingItemStyle>
<ItemStyle ForeColor="#000066" BackColor="Moccasin"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="Black"
BackColor="Gainsboro"></HeaderStyle>
<FooterStyle ForeColor="#000066" BackColor="Tan"></FooterStyle>
<Columns>
<asp:ButtonColumn Text="Button" DataTextField="materialnumber"
SortExpression="materialnumber" HeaderText="Material #"
CommandName="select">
<HeaderStyle Width="60px"></HeaderStyle>
<ItemStyle Width="60px"></ItemStyle>
</asp:ButtonColumn>
<asp:BoundColumn Visible="False"></asp:BoundColumn>
<asp:BoundColumn Visible="False" DataField="SKU"
SortExpression="SKU" HeaderText="SKU"></asp:BoundColumn>
<asp:BoundColumn Visible="False"></asp:BoundColumn>
<asp:BoundColumn DataField="productcode"
SortExpression="productcode" HeaderText="Product Code">
<HeaderStyle Width="60px"></HeaderStyle>
<ItemStyle Width="60px"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Description"
SortExpression="Description" HeaderText="Description">
<HeaderStyle Width="180px"></HeaderStyle>
<ItemStyle Width="180px"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Order Qty" SortExpression="Order Qty"
HeaderText="Order Qty" DataFormatString="{0:n0}">
<HeaderStyle HorizontalAlign="Right" Width="80px"></HeaderStyle>
<ItemStyle HorizontalAlign="Right" Width="80px"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Ship Qty" SortExpression="Ship Qty"
HeaderText="Ship Qty" DataFormatString="{0:n0}">
<HeaderStyle HorizontalAlign="Right" Width="80px"></HeaderStyle>
<ItemStyle HorizontalAlign="Right" Width="80px"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Open Qty" SortExpression="Open Qty"
HeaderText="Open Qty" DataFormatString="{0:n0}">
<HeaderStyle HorizontalAlign="Right" Width="80px"></HeaderStyle>
<ItemStyle HorizontalAlign="Right" Width="80px"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="$-Order" SortExpression="$-Order"
HeaderText="$-Ordered">
<HeaderStyle HorizontalAlign="Right" Width="80px"></HeaderStyle>
<ItemStyle HorizontalAlign="Right" Width="80px"></ItemStyle>
<FooterStyle HorizontalAlign="Right"></FooterStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="$-Ship" SortExpression="$-Ship"
HeaderText="$-Shipped">
<HeaderStyle HorizontalAlign="Right" Width="80px"></HeaderStyle>
<ItemStyle HorizontalAlign="Right" Width="80px"></ItemStyle>
<FooterStyle HorizontalAlign="Right"></FooterStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="$-Open" SortExpression="$-Open"
HeaderText="$-Open">
<HeaderStyle HorizontalAlign="Right" Width="80px"></HeaderStyle>
<ItemStyle HorizontalAlign="Right" Width="80px"></ItemStyle>
<FooterStyle HorizontalAlign="Right"></FooterStyle>
</asp:BoundColumn>
</Columns>
<PagerStyle HorizontalAlign="Left" ForeColor="#000066"
BackColor="White" Mode="NumericPages"></PagerStyle>
</asp:datagrid></P>
<P align="left"><asp:datagrid id="DGCustomer" runat="server"
Font-Size="X-Small" Width="800px" BackColor="White"
BorderColor="#CCCCCC" BorderStyle="None"
OnSelectedIndexChanged="DGCustomer_Select" DataKeyField="Customer #"
AutoGenerateColumns="False" BorderWidth="1px" CellPadding="3"
AllowSorting="True" OnSortCommand="DGCustomer_Sort">
<SelectedItemStyle ForeColor="Black"
BackColor="White"></SelectedItemStyle>
<AlternatingItemStyle BackColor="PapayaWhip"></AlternatingItemStyle>
<ItemStyle ForeColor="#000066" BackColor="Moccasin"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="Black"
BackColor="Gainsboro"></HeaderStyle>
<FooterStyle ForeColor="#000066" BackColor="Tan"></FooterStyle>
<Columns>
<asp:ButtonColumn Text="button" DataTextField="Sold To Name"
SortExpression="Sold To Name" HeaderText="Sold To Name"
CommandName="Select">
<ItemStyle Width="125px"></ItemStyle>
</asp:ButtonColumn>
<asp:BoundColumn Visible="False" DataField="Customer #"
HeaderText="Customer #"></asp:BoundColumn>
<asp:BoundColumn Visible="False" DataField="Sold To Name"
SortExpression="Sold To Name" HeaderText="Sold To Name"></asp:BoundColumn>
<asp:BoundColumn DataField="Ship To Name" SortExpression="Ship To
Name" HeaderText="Ship To Name"></asp:BoundColumn>
<asp:BoundColumn DataField="Sold To" SortExpression="Sold To"
HeaderText="Sold To"></asp:BoundColumn>
<asp:BoundColumn DataField="Ship To" SortExpression="Ship To"
HeaderText="Ship To"></asp:BoundColumn>
<asp:BoundColumn DataField="Channel" SortExpression="Channel"
HeaderText="DC"></asp:BoundColumn>
<asp:BoundColumn DataField="Sales Group" SortExpression="Sales
Group" HeaderText="Sales Group"></asp:BoundColumn>
<asp:BoundColumn DataField="Sales Rep" SortExpression="Sales Rep"
HeaderText="Sales Rep"></asp:BoundColumn>
<asp:BoundColumn DataField="Address" SortExpression="Address"
HeaderText="Address"></asp:BoundColumn>
<asp:BoundColumn DataField="Phone Number" SortExpression="Phone
Number" HeaderText="Phone Number"></asp:BoundColumn>
<asp:BoundColumn DataField="Contact Name" SortExpression="Contact
Name" HeaderText="Contact Name"></asp:BoundColumn>
<asp:BoundColumn DataField="Contact Phone"
SortExpression="Contact Phone" HeaderText="Contact #"></asp:BoundColumn>
</Columns>
<PagerStyle HorizontalAlign="Left" ForeColor="#000066"
BackColor="White" Mode="NumericPages"></PagerStyle>
</asp:datagrid></P>
<P align="left"><asp:datagrid id="DGPOClass" runat="server"
Font-Size="X-Small" BackColor="White" BorderColor="#CCCCCC"
BorderStyle="None" OnSelectedIndexChanged="DGPOClass_Select"
DataKeyField="Class" AutoGenerateColumns="False" BorderWidth="1px"
CellPadding="3" ShowFooter="True"
OnItemDataBound="MyDataGrid_ItemDataBound1" width="800px"
OnPageIndexChanged="DGPOClass_Page" PageSize="6">
<SelectedItemStyle ForeColor="Black"
BackColor="White"></SelectedItemStyle>
<AlternatingItemStyle BackColor="PapayaWhip"></AlternatingItemStyle>
<ItemStyle ForeColor="#000066" BackColor="Moccasin"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="Black"
BackColor="Gainsboro"></HeaderStyle>
<FooterStyle ForeColor="#000066" BackColor="Tan"></FooterStyle>
<Columns>
<asp:ButtonColumn DataTextField="class" HeaderText="PO
Classification" CommandName="Select">
<HeaderStyle Wrap="False"></HeaderStyle>
<ItemStyle Width="125px"></ItemStyle>
</asp:ButtonColumn>
<asp:BoundColumn Visible="False" DataField="class"
HeaderText="Class">
<HeaderStyle Wrap="False"></HeaderStyle>
<ItemStyle Width="160px"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn Visible="False"></asp:BoundColumn>
<asp:BoundColumn Visible="False"></asp:BoundColumn>
<asp:BoundColumn Visible="False"></asp:BoundColumn>
<asp:BoundColumn DataField="Orders" HeaderText="# ">
<HeaderStyle Wrap="False" HorizontalAlign="Right"></HeaderStyle>
<ItemStyle HorizontalAlign="Right" Width="80px"></ItemStyle>
<FooterStyle HorizontalAlign="Right"></FooterStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="orderval" HeaderText="$-Ordered">
<HeaderStyle Wrap="False" HorizontalAlign="Right"></HeaderStyle>
<ItemStyle HorizontalAlign="Right"></ItemStyle>
<FooterStyle HorizontalAlign="Right"></FooterStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="shipval" HeaderText="$-Shipped">
<HeaderStyle Wrap="False" HorizontalAlign="Right"></HeaderStyle>
<ItemStyle HorizontalAlign="Right"></ItemStyle>
<FooterStyle HorizontalAlign="Right"></FooterStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="openval" HeaderText="$-Open">
<HeaderStyle Wrap="False" HorizontalAlign="Right"></HeaderStyle>
<ItemStyle HorizontalAlign="Right"></ItemStyle>
<FooterStyle HorizontalAlign="Right"></FooterStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="assigned" HeaderText="$-Assigned">
<HeaderStyle Wrap="False" HorizontalAlign="Right"></HeaderStyle>
<ItemStyle HorizontalAlign="Right"></ItemStyle>
<FooterStyle HorizontalAlign="Right"></FooterStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="unassigned" HeaderText="$-Unassigned">
<HeaderStyle Wrap="False" HorizontalAlign="Right"></HeaderStyle>
<ItemStyle HorizontalAlign="Right"></ItemStyle>
<FooterStyle HorizontalAlign="Right"></FooterStyle>
</asp:BoundColumn>
</Columns>
<PagerStyle HorizontalAlign="Left" ForeColor="#000066"
BackColor="White" Mode="NumericPages"></PagerStyle>
</asp:datagrid></P>
<P align="left"><asp:datagrid id="DGPOList" runat="server"
Font-Size="X-Small" BackColor="White" BorderColor="#CCCCCC"
BorderStyle="None" OnSelectedIndexChanged="DGPOList_Select"
DataKeyField="ponr" AutoGenerateColumns="False" BorderWidth="1px"
CellPadding="3" ShowFooter="True"
OnItemDataBound="MyDataGrid_ItemDataBound1" AllowSorting="True"
OnSortCommand="DGPOList_Sort" width="800px"
OnPageIndexChanged="DGPOClass_Page" PageSize="6">
<SelectedItemStyle ForeColor="Black"
BackColor="White"></SelectedItemStyle>
<AlternatingItemStyle BackColor="PapayaWhip"></AlternatingItemStyle>
<ItemStyle ForeColor="#000066" BackColor="Moccasin"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="Black"
BackColor="Gainsboro"></HeaderStyle>
<FooterStyle ForeColor="#000066" BackColor="Tan"></FooterStyle>
<Columns>
<asp:ButtonColumn Text="button" DataTextField="ponr"
SortExpression="ponr" HeaderText="PO #" CommandName="Select">
<HeaderStyle Wrap="False"></HeaderStyle>
<ItemStyle Width="125px"></ItemStyle>
</asp:ButtonColumn>
<asp:BoundColumn DataField="Order-dt" SortExpression="Order-dt"
HeaderText="Order Date"></asp:BoundColumn>
<asp:BoundColumn DataField="rdd" SortExpression="rdd"
HeaderText="Req''d Delv Date"></asp:BoundColumn>
<asp:BoundColumn DataField="Last Ship-Dt" SortExpression="Last
Ship-Dt" HeaderText="Last Ship Date">
<ItemStyle Width="80px"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="LastInvoice"
SortExpression="LastInvoice" HeaderText="Last Invoice #"></asp:BoundColumn>
<asp:BoundColumn DataField="shipments" SortExpression="shipments"
HeaderText="#">
<HeaderStyle Wrap="False" HorizontalAlign="Right"></HeaderStyle>
<ItemStyle HorizontalAlign="Right"></ItemStyle>
<FooterStyle HorizontalAlign="Right"></FooterStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="orderval" SortExpression="orderval"
HeaderText="$-Ordered">
<HeaderStyle HorizontalAlign="Right"></HeaderStyle>
<ItemStyle HorizontalAlign="Right"></ItemStyle>
<FooterStyle HorizontalAlign="Right"></FooterStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="shipval" SortExpression="shipval"
HeaderText="$-Shipped">
<HeaderStyle HorizontalAlign="Right"></HeaderStyle>
<ItemStyle HorizontalAlign="Right"></ItemStyle>
<FooterStyle HorizontalAlign="Right"></FooterStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="openval" SortExpression="openval"
HeaderText="$-Open">
<HeaderStyle HorizontalAlign="Right"></HeaderStyle>
<ItemStyle HorizontalAlign="Right"></ItemStyle>
<FooterStyle HorizontalAlign="Right"></FooterStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="assigned" SortExpression="assigned"
HeaderText="$-Assigned">
<HeaderStyle HorizontalAlign="Right"></HeaderStyle>
<ItemStyle HorizontalAlign="Right"></ItemStyle>
<FooterStyle HorizontalAlign="Right"></FooterStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="unassigned"
SortExpression="unassigned" HeaderText="$-Unassigned">
<HeaderStyle HorizontalAlign="Right"></HeaderStyle>
<ItemStyle HorizontalAlign="Right"></ItemStyle>
<FooterStyle HorizontalAlign="Right"></FooterStyle>
</asp:BoundColumn>
</Columns>
<PagerStyle HorizontalAlign="Left" ForeColor="#000066"
BackColor="White" Mode="NumericPages"></PagerStyle>
</asp:datagrid></P>
<DIV align="left"><asp:datagrid id="DGBOL" runat="server"
Font-Size="X-Small" Width="800px" BackColor="White"
BorderColor="#CCCCCC" BorderStyle="None" AutoGenerateColumns="False"
BorderWidth="1px" CellPadding="3">
<SelectedItemStyle ForeColor="White"
BackColor="#669999"></SelectedItemStyle>
<ItemStyle ForeColor="#000066"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="Black"
BackColor="Gainsboro"></HeaderStyle>
<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
<Columns>
<asp:BoundColumn DataField="bill_of_lading" HeaderText="Bill Of
Lading"></asp:BoundColumn>
<asp:BoundColumn DataField="pro_number" HeaderText="Pro
#"></asp:BoundColumn>
<asp:BoundColumn DataField="carrier_id"
HeaderText="Carrier"></asp:BoundColumn>
<asp:BoundColumn DataField="committed_qty" HeaderText="Assigned
Qty" DataFormatString="{0:#,###}">
<ItemStyle HorizontalAlign="Right"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="committed_val" HeaderText="Assigned
Val" DataFormatString="{0:c0}">
<ItemStyle HorizontalAlign="Right"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn Visible="False" DataField="delv_note_qty"
HeaderText="Delv Note Qty">
<ItemStyle HorizontalAlign="Right"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn Visible="False" DataField="delv_note_val"
HeaderText="Delv Note Val">
<ItemStyle HorizontalAlign="Right"></ItemStyle>
</asp:BoundColumn>
</Columns>
<PagerStyle HorizontalAlign="Left" ForeColor="#000066"
BackColor="White" Mode="NumericPages"></PagerStyle>
</asp:datagrid></DIV>
<DIV align="center">&nbsp;</DIV>
<DIV align="left">&nbsp;
<asp:literal id="MyPage" runat="server"></asp:literal></DIV>
<H2 align="center"><asp:label id="lblErrorMsg" runat="server"
Visible="False">DESC</asp:label>&nbsp;
<asp:textbox id="txtSoldTo" runat="server" Width="16px"
Visible="False"></asp:textbox>&nbsp;&nbsp;
<asp:textbox id="txtShipTo" runat="server" Width="16px"
Visible="False"></asp:textbox><asp:textbox id="txtDC" runat="server"
Width="16px" Visible="False"></asp:textbox><asp:textbox id="txtDG1"
runat="server" Width="148px" Visible="False"></asp:textbox><asp:textbox
id="TxtDG2" runat="server" Width="97px"
Visible="False"></asp:textbox><asp:textbox id="txtDGCustomer"
runat="server" Width="75px" Visible="False"></asp:textbox><asp:textbox
id="TxtDG4" runat="server" Width="181px"
Visible="False"></asp:textbox><asp:textbox id="TxtDG3" runat="server"
Width="22px" Visible="False"></asp:textbox><asp:textbox id="txtDG5"
runat="server" Width="181px" Visible="False"></asp:textbox><asp:textbox
id="txtDG6" runat="server" Width="181px"
Visible="False"></asp:textbox><FONT color="white"><asp:textbox
id="txtDGPOList" runat="server" Width="181px"
Visible="False"></asp:textbox><asp:label id="lblPO" runat="server"
ForeColor="Black" BackColor="White"
Visible="False">PO''s</asp:label>&nbsp;</FONT>
<asp:dropdownlist id="cmbPO" runat="server"
OnSelectedIndexChanged="cmbPO_SelectedIndexChanged " Visible="False"
DataTextField="pon"
DataValueField="po"></asp:dropdownlist>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;
<asp:textbox id="txtPO" runat="server"
Visible="False"></asp:textbox>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:button id="btnSubmit" onclick="btnSubmit_Click" runat="server"
ForeColor="White" Text="Submit" BackColor="#006699"
Visible="False"></asp:button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;
<asp:button id="Button1" onclick="btnReports_OnClick"
runat="server" Text="Reports Menu"
Visible="False"></asp:button><asp:textbox id="Textbox1" runat="server"
Visible="False"></asp:textbox></H2>
<P align="center"></P>
</form>
</DIV>
<!-- Insert content here -->
</body>
</HTML>
In Visual Studio 2005, on the Solution Explorer, I have a Sales folder
and under that, I show Item.aspx with a plus sign next to it. If I
click the plus sign, Item.aspx.vb. If I open Item.aspx, and click "View
Code" it opens the Item.aspx.vb codefile.

However, the errors that I get when I try to compile the application are:

''DataGrid5_Sort'' is not a member of ''ASP.sales_item_aspx''.
''MyDataGrid_ItemDataBound'' is not a member of ''ASP.sales_item_aspx''
''DataGrid5_Select'' is not a member of ''ASP.sales_item_aspx''.

and so on.

I''ve looked for this error message, and it says that it may be some
references to 1.1 framework in there, but I''ve not been able to find them.

This has frustrated me to no end the last 4 days, and every time I think
I have found the problem, nothing fixes it.

Anyone have any idea why this is doing this? All the errors are in 1
page in the entire application, but I have a sinking feeling that as
soon as I fix these, there will be a dozen more errors to take their place.

Any advice, suggestions appreciated.

BC

推荐答案

-Order" SortExpression="
-Order" SortExpression="


-Order"

HeaderText="
-Order"
HeaderText="


-Ordered">

<HeaderStyle HorizontalAlign="Right" Width="80px"></HeaderStyle>

<ItemStyle HorizontalAlign="Right" Width="80px"></ItemStyle>

<FooterStyle HorizontalAlign="Right"></FooterStyle>

</asp:BoundColumn>

<asp:BoundColumn DataField="
-Ordered">
<HeaderStyle HorizontalAlign="Right" Width="80px"></HeaderStyle>
<ItemStyle HorizontalAlign="Right" Width="80px"></ItemStyle>
<FooterStyle HorizontalAlign="Right"></FooterStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="


这篇关于将应用程序从1.1转换为框架2.0时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆