Custom Control CustomDropDownListBorderColor in vb

S

Shen

Hi, All
I tried to run a customized dropdownlist control (code from http://msdn.microsoft.com/library/d...controlsdropdownlistclassbordercolortopic.asp) and get the following error.
(Please note changed the name space to be my project name: custcontrol. I am with VS.NET 2003)
Can anyone help on this please? Thanks in advance!

Shen


Server Error in '/custcontrol' 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: Could not load type custcontrol.CustomDropDownListBorderColor from assembly custcontrol, Version=1.0.1496.35023, Culture=neutral, PublicKeyToken=null.

Source Error:

Line 15: <form id="Form1" method="post" runat="server">
Line 16: <h3>Custom DropDownList - BorderColor - VB.NET Example</h3>
Line 17: <aspSample:CustomDropDownListBorderColor id="DropDownList1" runat="server" />
Line 18: </form>
Line 19: </body>
 
S

Shen

and here is the code that I use (note that I have a folder Controls under. Also tried with no subfolder

Thanks, She

=================================================

Namespace custcontrol.Control
Public Class CustomDropDownListBorderColo
Inherits System.Web.UI.WebControls.DropDownLis
Public Overrides Property BorderColor() As System.Drawing.Colo
..
End Propert
End Clas
End Namespac

<%@ Page Language="VB" AutoEventWireup="True" %><%@ Register TagPrefix="aspSample" Namespace="custcontrol.Controls" Assembly="custcontrol" %><HTML><HEAD><title>Custom DropDownList - BorderColor - VB.NET Example</title><script runat="server"
Sub Page_Load(sender As Object, e As EventArgs
DropDownList1.Items.Add(New ListItem("Item1", "Item1")
End Su
</script></HEAD><body><form id="Form1" method="post" runat="server"><h3>Custom DropDownList - BorderColor - VB.NET Example</h3><aspSample:CustomDropDownListBorderColor id="DropDownList1" runat="server" /></form></body></HTML>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top