コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["userKey"] == null)
        {
            Response.Redirect("default.aspx");
        }
        //if (!IsPostBack)
        //    FillGrantList;
        int key = (int)Session["userKey"];

        ServiceReference1.GrantRequest[] grants = sc.GetGrant(key);
        GridView.DataSource = grants;
        GridView.DataBind();
    }