Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Problems, problems for newbie

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shelly - 02 Sep 2007 20:51 GMT
I'm getting very frustrated with a number of problems I have encountered in
my first application.  Any and all help will be appreciated.

I have a master page called  Managing.master with the vb in
Managing.master.vb.

The first lines of Managing.master are:
<%@ Master Language="VB" Codefile="Managing.master.vb" Inherits="MasterPage"
%>
<!DOCTYPE html PUBLIC "~//W3C//DTD XHTML 1.0 Transitional//EN
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xnlns="http://www.w3.org/1999/xhtml">

The file Managing.master.vb has:
Partial Class Managing
   Inherits System.Web.UI.MasterPage
End Class

My specific file is orders.aspx and it starts with:

<%@ Page Language="VB" MasterFilePage="~Managing.master"
AutoEventWireup="false" Codefile="order.aspx.vb" Inherits="manage_order"
title="Untitled Page" %>

Note that the order.aspx files are in a subdirectory called "manage".

I have a stylesheet called style.css.  It looks perfect and I created it
with the Web Developer UI.

OK, here are the problems:

1 - With the css, it finds some of the classes but not all.  If I cut and
paste a bunch of them to a different part of the file, it stops seeing a
bunch it already saw.  If I edit undo a couple of time to restore the
original, it still cannot find those classes.

2 - I am getting errors from Managing.master.vb(2);  error ASPNET: Make sure
that the class defined in this code file matches the 'inherits' attribute;
and that it extends the correct base class.

3 - 'Context' is not a member of 'MasterPage'.

4 - 'ReadStringResource' is not a member of 'ASP.managing.master';

5 - 'ContentPlaceholders' is not a member of 'ASP.managing.master';

6 - 'ContentTemplates' is not a member of 'ASP.managing.master';

Note that I created the Master Page using the MasterPage option in FileNew
and I create the orders file with the Web file choice in File/New.

Help, please?

Shelly
Shelly - 03 Sep 2007 03:10 GMT
I found the fix that made all these problems go away.  For some reason the
orders.master.vb had an Inherits of managing_order, whereas the
orders.master had one of manage_order.  I don't know how this happened, but
changing it to match with manage_order made it all compile with no errors.
Thanks anyway.

Shelly

> I'm getting very frustrated with a number of problems I have encountered
> in my first application.  Any and all help will be appreciated.
[quoted text clipped - 50 lines]
>
> Shelly

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.