问题还是不行啊。。
没解决,我有好几个页面都是如此,设断点跟踪了一下,执行后没反映。。
弟兄们帮忙啊!!!!!
protected void Button1_Click(object sender, EventArgs e)
{
int i = Convert.ToInt32(((Label)FormView1.FindControl("label1")).Text);
Session["price"] = Convert.ToInt32(((Label)FormView1.FindControl("priceLabel")).Text);
bool n =Convert.ToBoolean(Session["logID"]);
if (n == true)
{
Vnet_Common.Member member = new Vnet_junhe.Vnet_Common.Member();
Vnet_Common.Video video = new Vnet_junhe.Vnet_Common.Video();
member.id = Convert.ToInt32(Session["ID"]);
video.ID = i;
DataSet dsm = new DataSet();
DataSet dsv = new DataSet();
dsm = Vnet_BusinessRule.BusMember.GetMembers(member);
dsv = Vnet_BusinessRule.BusVideo.GetVideos(video);
int mp = Convert.ToInt32(dsm.Tables[0].Rows[0][8].ToString());
int vp = Convert.ToInt32(dsv.Tables[0].Rows[0][2].ToString());
if (mp < vp)
{
Response.Write("<script>alert('您的余额不足,请充值')<script>");
///this.RegisterStartupScript("", "<script languge='javaScript'>alert('温馨提示:余额不足,请充值!')</script>");
}
}
Response.Redirect("PlayVideo.aspx?videoID=" + i);
}
[此贴子已经被作者于2006-9-13 10:09:14编辑过]