62,272
社区成员
发帖
与我相关
我的任务
分享 protected void ibtnDelete_Click(object sender, ImageClickEventArgs e)
{
string id = ((ImageButton)sender).CommandArgument.ToString();
cookies = Request.Cookies["UserCookies"];
if (cookies != null)
{
int uid = int.Parse(cookies["User_Uid"].ToString());
if (uid != 1)
{
ClientScript.RegisterStartupScript(this.Page.GetType(), "", "<script>alert('你没权限删除,只用总管理员删除!');</script>");
}
else
{
adelup.OaDeleteProductRuku(int.Parse(id));
}
}
PageFen();
}
foreach (RepeaterItem thisitem in Repeater1.Items)
{
Label lbl= (Label)thisitem.FindControl("lblName");
lbl.Text="shdhkjsahd";
}