点击回首页
我的浏览记录 | | 帮助?
当前位置:

源码截图

源码目录树

当前路径:teacher/ceshiguanlionline.aspx.cs     using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

public partial class teachermanage_zuzhiceshi_studentceshimanage2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }
    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            //获取交卷状态的值
            Label jiaojuanlabel=((Label)(e.Row.Cells[6].FindControl("Label1")));
            string jiaojuanzhuangtai=jiaojuanlabel.Text.Trim();
            if (jiaojuanzhuangtai == "已交卷")
            {
                ((LinkButton)(e.Row.Cells[8].FindControl("LinkButton1"))).Visible = false;
                ((LinkButton)(e.Row.Cells[8].FindControl("LinkButton2"))).Visible = true;

            }
            else
            {
                ((LinkButton)(e.Row.Cells[8].FindControl("LinkButton1"))).Visible = true;
                ((LinkButton)(e.Row.Cells[8].FindControl("LinkButton2"))).Visible = false;
            }
            Label yunxulabel = ((Label)(e.Row.Cells[7].FindControl("Label2")));
            string yunxuzhuangtai = yunxulabel.Text.Trim();
            if (yunxuzhuangtai == "允许")
            {
                ((LinkButton)(e.Row.Cells[9].FindControl("LinkButton3"))).Visible = false;
                ((LinkButton)(e.Row.Cells[9].FindControl("LinkButton4"))).Visible = true;
            }
            else
            {
                ((LinkButton)(e.Row.Cells[9].FindControl("LinkButton3"))).Visible = true;
                ((LinkButton)(e.Row.Cells[9].FindControl("LinkButton4"))).Visible = false;
            }

        }
    }
    protected void LinkButton1_Command(object sender, CommandEventArgs e)//设为已交卷
    {
        int stks_id =int.Parse(e.CommandArgument.ToString(...
对不起,完整源码文件,请先购买后再查看
关于我们 | 顾问团队 | 发展历程 | 联系我们 | 源码上传
联系电话(Tel):4008-010-151(免长途) 企业QQ:2852517674
地址:北京市海淀区中关村鼎好大厦A座二层 邮编:100080
Room A-801,Dinghao Building,Zhongguancun,Beijing,China,100080
51Aspx.com 版权所有 CopyRight © 2006-2015. 京ICP备09089570号 | 京公网安备11010702000869号
分享该页面
关闭侧边栏