示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["top"] != null)
            {
                topquery = int.Parse(Request.QueryString["top"]);
            }
            else
            {
                topquery = 1000;
            }
            TableNm = Request.QueryString["TBLNM"];
            object[] param = new object[] { TableNm };
            dtparam       = conn.GetDataTable(Q_PARAMSYS, param, dbtimeout);
            dtparamschema = conn.GetDataTable("SELECT TOP 0 * FROM " + TableNm, null, dbtimeout, true, true);
            creategridquery();

            if (!IsPostBack && !IsCallback)
            {
                lblError.Text = lblErrorDet.Text = ""; btn_showdet.Attributes["style"] = "display:none";
                title.Text    = Request.QueryString["title"] + " Top " + topquery.ToString() + " of row";
                MasterPageX.logactivity(this, "ParamApprv", "Accessing Parameter (" + Request.QueryString["TBLNM"] + ")", conn, dbtimeout);
                createGridColumns(gridpending);
                //ASPxGridView grid = new ASPxGridView();
                //USC_paraminput.createGridColumns(grid, gridpending2);
            }
        }
示例#2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack && !IsCallback)
     {
         title.Text = Request.QueryString["title"];
         using (DbConnection conn = new DbConnection((string)Session["ConnString"]))
         {
             MasterPageX.logactivity(this, "ParamMaker", "Accessing Parameter (" + Request.QueryString["TBLNM"] + ")", conn, 600);
         }
         USC_paraminput.createGridColumns(grid, gridpending);
     }
 }