111,130
社区成员
发帖
与我相关
我的任务
分享namespace Web
{
public partial class LeftContents : System.Web.UI.UserControl
{
private string strqry,strurl,strfield,strmytitle; //四个变量供外站调用.分别为SQL语句,超链接地址,列表字段名,菜单名
protected string address, post, phone, fax, email;
public string strqryp
{
set
{
strqry = value;
}
get
{
return strqry;
}
}
public string strurlp
{
set
{
strurl = value;
}
get
{
return strurl;
}
}
public string strfieldp
{
set
{
strfield = value;
}
get
{
return strfield;
}
}
public string strmytitlep
{
set
{
strmytitle = value;
}
get
{
return strmytitle;
}
}
protected void Page_Load(object sender, EventArgs e)
{
pageload();
}
private void pageload()
{
DataView dv;
dv = DBFun.GetDataView(strqry);
rp_menu.DataSource = dv;
rp_menu.DataBind();
if (Application["contact"] != null)
{
string[] contact=(string[])Application["contact"];
address = contact[0];
post = contact[1];
phone = contact[2];
fax = contact[3];
email = contact[4];
}
}
}
}