我原来是这样的写的:
private void dgrd_houseInfo_ItemCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
if (e.CommandName == "orientation")
{
Response.Write("<Script>window.open('../litBrowser.aspx?fwbh="+zzdz+"&pcs="+pcs+"',null,'width=580,height=490,top=100,left=50,resizable=no,scrollbars=yes,status=yes')</Script>"); //显示住同一地址的人
string zzdz2 = e.Item.Cells[6].Text.Trim();
string pcs2 = e.Item.Cells[12].Text.Trim();  this.dgrd_houseUser.DataSource = SelectZZDZ(zzdz2,pcs2);
this.dgrd_houseUser.DataBind();
}

}
}
但执行的结果是先执行:
//显示住同一地址的人
string zzdz2 = e.Item.Cells[6].Text.Trim();
string pcs2 = e.Item.Cells[12].Text.Trim();  this.dgrd_houseUser.DataSource = SelectZZDZ(zzdz2,pcs2);
this.dgrd_houseUser.DataBind();
这个,再去win.open了!!!
有没有办法先去win.open,再执行后台代码啊???