数据库companyqq:1111111,222222,22222333,555555
public string qq1 = "";
public string qq2 = "";
public string qq3 = "";
public string qq4 = "";
public string name1;
public string tel;
public void Getqq()
{
string sql = "select companytel,companyqq,companyname from WN_Contact where companyid=1";
DataSet ds = db.dsExecuteQuery(sql);
string qq = ds.Tables[0].Rows[0]["companyqq"].ToString();
name1 = ds.Tables[0].Rows[0]["companyname"].ToString();
tel = ds.Tables[0].Rows[0]["companytel"].ToString();
string[] aa = qq.Split(',');
qq1 = aa[0].ToString();
qq2 = aa[1].ToString();
qq3 = aa[2].ToString();
qq4 = aa[3].ToString();
}
<div class="qqbg">
<a target="blank" href="tencent://message/?uin=<%=this.qq1 %>&&Site=<%=this.name1 %>"><%=this.qq1 %></a>,
<a target="blank" href="tencent://message/?uin=<%=this.qq2 %>&&Site=<%=this.name1 %>"><%=this.qq2 %></a><br />
<a target="blank" href="tencent://message/?uin=<%=this.qq3 %>&&Site=<%=this.name1 %>"><%=this.qq3 %></a>,
<a target="blank" href="tencent://message/?uin=<%=this.qq4 %>&&Site=<%=this.name1 %>"><%=this.qq4 %></a>
</div>
浙公网安备 33010602011771号