I'm new to ASP. I'm trying to setup a custom control and am going through the tutorials in the SDK .
Here is the code
Namespace customcontrols
Public Class clientclickbutton
Inherits Button
Protected Overrides Sub addattributestorender(ByVal writer As HtmlTextWriter)
MyBase.AddAttributesToRender(writer)
writer.AddAttribute("OnClick", "Alert('Thanks');")
End Sub
End Class
End Namespace
<%@ Register TagPrefix="Custom" Namespace="CustomControls.MyControl" Assembly = "CustomControls" %>
<%@ Page Language="
vb" AutoEventWireup="false" src="WebForm1.aspx.
vb" Inherits="WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
This button handles a client-side click event.
<Custom:ClientClickButton Id="Button" BackColor="Red" runat="server" />
<br>
<br>
</form>
</body>
</HTML>
After this I get an error "File or assembly name CustomControls, or one of its dependencies, was not found.." with the @Register line highlighted.
I can't imagine this should be all that difficult and I'm probably missing something very basic here.
Anybody have any pointers for me?