Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inherits...

Status
Not open for further replies.

QatQat

IS-IT--Management
Nov 16, 2001
1,031
IT
Hi there,


I have written some pages in the past using WebMatrix with no problems yet with not much help either.

I am now trying to use VB.Net 2003.

I am interested in using the codebehind page as th way of coding resembles much more VB6, which I am more familiar with.

I have crfeated a project named Project1 and a page named ViewIndicators.aspx with related aspx.vb codebehind page.

Every time I preview it in browser though, I get an error saying

Could not load type 'Project1.ViewIndicators'


Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="onchange.aspx.vb" Inherits="'Project1.ViewIndicators"%>


No matter what I put on my web page it still gets back to me with the same error and if I create a new page, same error again but referring to the new page's name.

Is it really worth using this VB.Net or should I stick to text editors?


Thanks

QatQat


Life is what happens when you are making other plans.
 
Try this:


<%@ Page Language="vb" AutoEventWireup="false" Codebehind="ViewIndicators.aspx.vb" Inherits="ViewIndicators" %>
 
The code-behind method is much preferred. The problem is you need to have a compiled .dll in the bin directory that contains the appropriate type. I'm not sure how Web Matrix works, but is there a "build" option or something that makes an assembly? As a last resort, you can use the command-line compiler.
 
Web Matrix doesn't support Code Behind pages. There is a workaround by using the src tag.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top