这两个个函数是什么意思啊 ??
public void Anqx(System.Web.UI.Page WebForm)
{
string[] str = new string[] { "" };
if (WebForm.Request.QueryString["id"] != null)
{
string lmid = WebForm.Request.QueryString["id"].ToString();
string strsql = "declare @a varchar(3000) set @a='' select @a=@a+gnkjname+',' from xt_qxsz a,XT_MKCZGN b where a.userid='" + Session["UserID"].ToString() + "' and a.mkid=b.mkid and a.mkid='" + lmid + "' and a.gnid=b.gnid select @a";
DataSet ds = this.Select(strsql);
if (ds.Tables[0].Rows.Count > 0)
{
str = ds.Tables[0].Rows[0][0].ToString().Split(',');
}
}
AnqxKz(WebForm, str);
}
private void AnqxKz(System.Web.UI.Control control, string[] str)
{
foreach (Control ct in control.Controls)
{
if (ct is ImageButton)
{
string Conid = ct.ClientID;
if (Conid != "btnExit" && Conid != "btnRefresh")
{
ct.Visible = false;
}
for (int i = 0; i < str.Length; i++)