my DataType uses the UserControl QueryStringDataEditorUC (contain only TEXTBOX)
when I put the textbox in QuerystringDataEditorUC.ascx nothing is rendered and is see nothing on the content section when i want to set a data to my new datatype
but when the textbox is located in QuerystringDataEditorUC.ascx.cs by
this.Controls.Add(newTextBox ());
the datatype is render and everything is good ...
is that the way it should be implemented.. can't I create my userControl in the .ascx file???
hi ... i'm trying to create my own Datatype
by inheriting
umbraco.cms .businesslogic .datatype .
AbstractDataEditor
public
{
control;
#region
properties
Id
{
get
{
return new Guid ("B630F00A-96DA-4969-8FF8-99E233DADAB9");}
}
DataTypeName
{
get
{
return "Incredimail QString";}
}
#endregion
{
control =
new QueryStringDataEditorUC();
control.Init +=
new EventHandler(control_Init);
}
{
base.Data.Value = control.QSText; ;}
{control.QSText =
base.Data.Value == null ? "" : base.Data.Value.ToString();}
====================================================
my DataType uses the UserControl QueryStringDataEditorUC (contain only TEXTBOX)
when I put the textbox in QuerystringDataEditorUC.ascx nothing is rendered and is see nothing on the content section when i want to set a data to my new datatype
but when the textbox is located in QuerystringDataEditorUC.ascx.cs by
this.Controls.Add(new TextBox ());
the datatype is render and everything is good ...
is that the way it should be implemented.. can't I create my userControl in the .ascx file???
thanks
is working on a reply...