Non riesco a creare un custom server control,
anche a fare qualcosa di molto semplice mi da sempre un caovlo di errore...
cosa c'e' di sbagliato?



Codice PHP:
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;

[
assemblyTagPrefix("NSTestSC""TestPrefix")]
namespace 
NSTestSC
{
    [
DefaultProperty("Text")]
    [
ToolboxData("<{0}:TestSC runat=\"server\" ID=\"TestSC1\"></{0}:TestSC>")]
    public class 
TestSC WebControl
    
{
        [
Bindable(true)]
        [
Category("Appearance")]
        [
DefaultValue("")]
        [
Localizable(true)]
        public 
string Text
        
{
            
get;
            
set;
        }

        protected 
override void RenderContents(HtmlTextWriter output)
        {
            
output.Write("ABC");
        }
    }