it's still make me problems.
here is the header.ascx.cs:
private void Page_Load(object sender, System.EventArgs e)
userObj.generateUser()
bla...
public string name
{
get
{
return userObj.name;
}
}
now in the index.aspx.cs im referencing to the control:
protected netTools.header adminTop;
and then trying to print the name property
Response.Write(adminTop.name);
and the result is empty string...
if im changing the name property return value to some hard code
return "bla"
it's
working well...