#region 根据UserCode加载相应控件
public void CheckUserControl(string UserCode)
{
if( UserCode!="0" && UserCode!= null)
{
Control myControl = Page.LoadControl("modules//FriendHeadControl.ascx");
this.PlaceHolder.Controls.Clear();
this.PlaceHolder.Controls.Add(myControl);
}
else
{
Control myControl = Page.LoadControl("modules//FriendHead2UserControl.ascx");
this.PlaceHolder.Controls.Clear();
this.PlaceHolder.Controls.Add(myControl);
}
}
#endregion
public void CheckUserControl(string UserCode)
{
if( UserCode!="0" && UserCode!= null)
{
Control myControl = Page.LoadControl("modules//FriendHeadControl.ascx");
this.PlaceHolder.Controls.Clear();
this.PlaceHolder.Controls.Add(myControl);
}
else
{
Control myControl = Page.LoadControl("modules//FriendHead2UserControl.ascx");
this.PlaceHolder.Controls.Clear();
this.PlaceHolder.Controls.Add(myControl);
}
}
#endregion