Web页面获取用户控件页面中服务器控件的值

用户控件页面后台:

public string P_Name
{
get { return txt_P_name.Value; }
set { txt_P_name.Value = value; }
}

Web页面后台:

if (head.P_Name != "")//head为用户控件的标签名
{
strwhere += " and a.P_NAME like '%" + head.P_Name + "%'";
}

posted @ 2016-03-01 15:43  向阳的影子  阅读(218)  评论(0编辑  收藏  举报