B
Blasting Cap
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"> </DIV>
<DIV align="left">
<asp:literal id="MyPage" runat="server"></asp:literal></DIV>
<H2 align="center"><asp:label id="lblErrorMsg" runat="server"
Visible="False">DESC</asp:label>
<asp:textbox id="txtSoldTo" runat="server" Width="16px"
Visible="False"></asp:textbox>
<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> </FONT>
<asp:dropdownlist id="cmbPO" runat="server"
OnSelectedIndexChanged="cmbPO_SelectedIndexChanged" Visible="False"
DataTextField="pon"
DataValueField="po"></asp:dropdownlist>
<asp:textbox id="txtPO" runat="server"
Visible="False"></asp:textbox>
<asp:button id="btnSubmit" onclick="btnSubmit_Click" runat="server"
ForeColor="White" Text="Submit" BackColor="#006699"
Visible="False"></asp:button>
<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
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"> </DIV>
<DIV align="left">
<asp:literal id="MyPage" runat="server"></asp:literal></DIV>
<H2 align="center"><asp:label id="lblErrorMsg" runat="server"
Visible="False">DESC</asp:label>
<asp:textbox id="txtSoldTo" runat="server" Width="16px"
Visible="False"></asp:textbox>
<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> </FONT>
<asp:dropdownlist id="cmbPO" runat="server"
OnSelectedIndexChanged="cmbPO_SelectedIndexChanged" Visible="False"
DataTextField="pon"
DataValueField="po"></asp:dropdownlist>
<asp:textbox id="txtPO" runat="server"
Visible="False"></asp:textbox>
<asp:button id="btnSubmit" onclick="btnSubmit_Click" runat="server"
ForeColor="White" Text="Submit" BackColor="#006699"
Visible="False"></asp:button>
<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