Hi
I am new to ASP.Net & web development but I am OK with Application based with both C# and
VB.Net.
I am following the Wrox ASP.Net 1.0 Spec Edition Book. On chapter 4 - Writing ASP.Net pages, particular around page 185 - 192, which uses the @ Control directive, by the way I am using
VB.Net. On p190 it uses class with this Control directive to replace the normal ASP web coding objects. I tried but seems that my .Net complier does not recognised this Control directive, why?
Here is the error code produced when I ran the web application:
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The directive 'Control' is unknown.
Source Error:
Line 3: <%@ Import Namespace = "System.Data" %>
Line 4: <%@ OutputCache Duration="10" VaryByParam="none" %>
Line 5: <%@ Control Inherits="shipMethodClass" Src="WebForm1.aspx.
vb" ClassName="shipMethod" %>Line 6: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 7: <HTML>
Source File: d:\inetpub\wwwroot\WebAppTest01\WebForm1.aspx Line: 5
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Can any one help as I am really a novice on web side and like to crack and able to do it. I believe this directive is important and I have to be able to use it before I get to more advance stuff.
Thanks in advance
Kasie