關於:Error 16:The type name 'CustomTextBox' does not exist in the type 'CustomControl.CustomControl'
我在命名空間:CustomControl中定義如下控件 public class CustomTextBox : TextBox
然後在aspx中調用CustomTextBox控件,如果不加入Text =<%# DataBinder.Eval(Container.DataItem, "RowState")%>此句則正常,一但加入則會報如題所示的錯誤,CustomTextBox只是在TextBox的基礎上擴展了幾個屬性!