M
Mike
Hi,
I don't know how to mantain the value of a Property of my WebCustomControl.
I've my Control and set:
------Code in Page container of contrl ----...
....
if(!IsPostBack)
myControl.DataSource = myDataSource;
myControl.DataTextField = "TextField";
myControl.DataValueField = "ValueField";
.....
------ Code in Contrl -----
.....
public string DataTextField
{
get{return this._dataTextField;}
set{_dataTextField = value;}
}
....
and when PostBack raised the value of this propertys are null
I can mantain the value using Session, but is little elegante.
Someone has an example about this?
THANKS!
I don't know how to mantain the value of a Property of my WebCustomControl.
I've my Control and set:
------Code in Page container of contrl ----...
....
if(!IsPostBack)
myControl.DataSource = myDataSource;
myControl.DataTextField = "TextField";
myControl.DataValueField = "ValueField";
.....
------ Code in Contrl -----
.....
public string DataTextField
{
get{return this._dataTextField;}
set{_dataTextField = value;}
}
....
and when PostBack raised the value of this propertys are null
I can mantain the value using Session, but is little elegante.
Someone has an example about this?
THANKS!