Troubleshoot codebehind?

B

benji

Hi,

I tried to copy a page in my ASP.NET 3.5 project (which copied the .vb. and
..designer.vb pages, but didn't change the classname that it inherits from.
Now, despite my attempts, every item defined in the webpage that I try to
access in the codebehind cannot be found ("name not declared" errors). Any
suggestions to troubleshoot? I'd rather not give in and create new pages.

For example, in "ViewCurrentTemplates.aspx", the first line is:

<%@ Page Language="vb" AutoEventWireup="false"
CodeBehind="ViewCurrentTemplates.aspx.vb"
Inherits="RCHTemplatesManager.ViewCurrentTemplates" %>

In ViewCurrentTemplates.aspx.vb, the class definition is:
Public Partial Class ViewCurrentTemplates
Inherits System.Web.UI.Page

In ViewCurrentTemplates.aspx.designer.vb, we have:

Option Strict On
Option Explicit On



Partial Public Class ViewCurrentTemplates

But what's weird is that the .designer.vb file sometimes shows variable
names that are out of sync with what's in the designer! And in some cases
shows an empty partial class! I'm pretty sure this is part of the problem,
but I'm not sure what "ties" these components together that I can check
further. Any tips?

Thanks...

-Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top