图 3.2 3登陆窗口界面
主要代码:
public string sql;
protected void Page_Load (object sender, EventArgs e)
{
if (!IsPostBack)
{
sql = "select top 8 id,title,addtime,leibie from allgonggao order by id desc";
getdata(sql);
sql = "select top 4 * from caipin order by id desc";
getdata2(sql);
}
}