62,267
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class temp_uc : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
private int _age=18;
public int Age
{
get {return _age;}
set {_age = (value>120) ? 18 : value }
}
control_wc myControl = LoadControl("~/control/wc.ascx") as control_wc;
if(myControl !=null)
{
myControl.xxx="";
}
PlaceHolder1.Controls.Add(myControl);
mark