Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
Error in converting app from 1.1 to framework 2.0
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Blasting Cap, post: 2884965"] Juan: That is correct - I am trying to convert a 1.1 app to 2.0, and seem to have one page that continually fails. The error messages I get are (all of this is in the ASPX I've posted previously): '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'. 'DGCustomer_sort' is not a member of 'ASP.sales_item_aspx'. and so on. I've created a new page (adding it to my sales folder in the application), and pasted the stuff between the BODY tags on the Aspx page in it, and pasted everything from the Page Load on from the aspx.vb page into the new one & still get the errors. Other pages that do sorts on the datagrid will build just fine. In the ones causing the problem, the first line of the aspx page is: <%@ Page Language="vb" AutoEventWireup="false" Inherits="test.Item" enableViewState="True" CodeFile="Item.aspx.vb" %> The aspx.vb/codefile has in it (this is everything above the Page Load section): Imports Microsoft.VisualBasic Imports System.IO Imports System.Data.SqlClient Imports System Imports System.Net Imports System.Web Imports System.Web.UI Imports System.Data Imports System.Text 'Partial Class Sales_Item ' Inherits System.Web.UI.Page 'End Class Namespace test Public Class Item Inherits System.Web.UI.Page #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer. <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. InitializeComponent() End Sub #End Region Dim strName As String Dim nbrpos As Double Dim orderqty As Double Dim shipqty As Double Dim sBol(5) As String Dim sCarrier(5) As String Dim orderval As Double Dim shipval As Double Dim sOrg As String = "0" Dim sRegion As String = "0" Dim sRep As String = "0" 'dim sDC as string = "0" Dim sRestrict As String Dim sAmmo As String Dim sSold As String Dim sShip As String Dim sDCs As String One of the other pages (with a sortable datagrid) that will build fine - the first line of the aspx page has: <%@ Page Language="VB" AutoEventWireup="false" Inherits="test.ProgramSummary" enableViewState="True" CodeFile="ProgramSummary.aspx.vb" %> Everything above the Page Load in it is: Imports System.Data.OleDb Imports System.Data Imports System.IO Imports System.Data.SqlClient Imports System Imports System.Net Imports System.Web Imports System.Web.UI 'Imports System.Net.Mail Imports System.Web.Mail Imports System.Text Namespace test Partial Class ProgramSummary Inherits System.Web.UI.Page #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer. <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. InitializeComponent() End Sub #End Region I even thought the first statement on the datagrid might be a problem. This one works: <asp:datagrid id="Datagrid2" runat="server" ToolTip="Program Summary" Width="100%" AllowSorting="True" OnItemDataBound="mydatagrid_itemdatabound" ShowFooter="True" AutoGenerateColumns="False" OnSortCommand="SortCommand_OnClick" Font-Size="Small"> this one does not: <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"> BC [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
Error in converting app from 1.1 to framework 2.0
Top