Exemplo n.º 1
0
        protected void lbViewStudentResponse_Click(object sender, EventArgs e)
        {
            LinkButton  linkUpdate = sender as LinkButton;
            GridViewRow grid       = (GridViewRow)linkUpdate.NamingContainer;
            string      tempID     = gvViewStudentResponse.DataKeys[grid.RowIndex].Value.ToString();

            ViewState["tempId"] = tempID;

            RenderXML RX = new RenderXML();

            DataSet ds = RX.XMLContent2(tempID);

            XmlDoc.LoadXml(ds.Tables[0].Rows[0]["XMLStudentResponse"].ToString());

            ns = new XmlNamespaceManager(XmlDoc.NameTable);
            ns.AddNamespace("ns", "urn:Question-Schema");
            string      xpath    = "/ns:Quiz";
            XmlNodeList QuizNode = XmlDoc.SelectNodes(xpath, ns);

            DLViewResponseReport.DataSource = QuizNode;
            DLViewResponseReport.DataBind();
            DLViewResponseReportFillin.DataSource = QuizNode;
            DLViewResponseReportFillin.DataBind();
            DLViewResponseReportTrueFalse.DataSource = QuizNode;
            DLViewResponseReportTrueFalse.DataBind();

            MPE2.Show();
        }
Exemplo n.º 2
0
    protected void GVInner_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        TextBox txt = new TextBox();

        txt.Text         = txtAllot.Text;
        Session["Index"] = "";
        int RowIndex = Convert.ToInt32(e.CommandName);

        GridViewRow Row       = GVInner.Rows[RowIndex];
        int         IRecordID = Convert.ToInt32(e.CommandArgument);

        Session["Index"] = IRecordID;
        MPE2.Show();

        Label   lblName     = (Label)Row.FindControl("LBLNAMe");
        Label   lblBarcode  = (Label)Row.FindControl("lblBarcode");
        Label   lblItemQty  = (Label)Row.FindControl("LB");
        TextBox lblIssueQty = (TextBox)Row.FindControl("TBIssud");

        LBItemName.Text = lblName.Text;
        LBBarcode.Text  = lblBarcode.Text;
        LBItemQty.Text  = lblItemQty.Text;
        HFIndex.Value   = RowIndex.ToString();
        //lblIssueQty.Text = txt.Text;
        BindGVRawMaterial(IRecordID);
        //lblIssueQty.Text = btnOk_Click();
    }
Exemplo n.º 3
0
    protected void GVItem_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        Session["Index"] = "";
        int RowIndex = Convert.ToInt32(e.CommandArgument);

        Session["Index"] = RowIndex;
        MPE2.Show();
        BindDDLWarehouse();
    }