I changed the codes like that:
public class MLButton : Button
{
public AdminStrings LanguageID
{
get
{
return this.ViewState["LanguageID"];
}
set
{
this.ViewState["LanguageID"] = value;
this.text=return LanguageManager.GetText(LanguageID);
}
}
and then,buttons can get right language text,but I also don't know how that happened. If you konw,please tell me ,thank you.