forumsat.org
New Member
When you have a code behind class are you supposed to compile it manually? Because I am getting an error on the page inherits saying that it could not load type. if so, how am I supposed to compile it(I am using notepad). I looked at the C# compiler options and they are for creating dll's or exe's.<BR><BR>MattI got it compiled but its giving me a Object reference not set to an instance of an object. <BR><BR>Matt<BR><BR>I just wrote my first Code Behind and according to the book I am reading - they do not need to be compiled. However, when using the default page directive that VS.NET adds when creating a new Web Form, I did encounter the same error that you did. When I changed the page directive to that in the example I am following, it wrked fine:<BR><BR>VS Directive:<BR><%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="LearnCodeBehind.WebForm1"%><BR><BR>Changed to book example:<BR><%@ Page Language="vb" src=http://aspmessageboard.com/archive/index.php/"WebForm1.vb" Inherits="WebForm1"%><BR><BR>