Yes.

-----Original Message-----
From: Shai Bar-Lev [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 11:47 PM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Code behind error in ASP.NET

Does the  codebehind is compiled into dll and it's under directory bin
under H:\AspNetUnleashed\Chapter05\  ?

-----Original Message-----
From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of
Kevin Burton
Sent: Thursday, May 30, 2002 7:41 PM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Code behind error in ASP.NET

No it is not in a namespace. The source for the code behind is fairly
simple.

Imports System
Imports System.Web.UI
Imports System.Web.UI.WebControls

Public Class FeaturedProduct
Inherits UserControl

Public BackColor As String = "lightgreen"

End Class

Then it is used in the user control as:

<%@ Inherits="FeaturedProduct" %>

<table width="200" cellpadding="10"
  cellspacing="0" bgcolor="<%=BackColor%>">
<tr>
  <td>
  <h3>Hammers on Sale!</h2>
  Quality hammers are now on sale in the
  hardware department.
  </td>
</tr>
</table>

Kevin

-----Original Message-----
From: Brad Wilson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 11:49 AM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Code behind error in ASP.NET

Kevin Burton wrote:

> When I try to run it I get the following error. Any idea what is
wrong? I
> have recompiled the FeaturedProduct.vb code behind and made sure that
it
is
> in the bin directory but I still get the error.

Is the FeaturedProduct class in a namespace? You may need to qualify the
name.

Brad

--
Read my web log at http://www.quality.nu/dotnetguy/

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to