protected void FetchKeyID(string keyword, System.Web.UI.WebControls.Label lblObj) { if (Request.QueryString[keyword] != null && CheckInput.CheckDigit(Request.QueryString[keyword].Trim())) { lblObj.Text = Request.QueryString[keyword].Trim(); } }
protected void FetchKeyID(string keyword, System.Web.UI.WebControls.Label lblObj, System.Web.UI.WebControls.DropDownList dropObj) { if (Request.QueryString[keyword] != null && CheckInput.CheckDigit(Request.QueryString[keyword].Trim())) { lblObj.Text = Request.QueryString[keyword].Trim(); dropObj.SelectedValue = lblObj.Text; } }
protected void FetchCurpage(string keyword, Wuqi.Webdiyer.AspNetPager anpObj) { if (Request.QueryString[keyword] != null && CheckInput.CheckDigit(Request.QueryString[keyword].Trim())) { int curPage = int.Parse(Request.QueryString[keyword].ToString()); anpObj.RecordCount = curPage * anpObj.PageSize; anpObj.CurrentPageIndex = curPage; } else { anpObj.CurrentPageIndex = 1; } }
protected void FetchKeyID(string keyword, System.Web.UI.WebControls.Label lblObj, System.Web.UI.WebControls.Repeater rptObj, string objName) { if (Request.QueryString[keyword] != null && CheckInput.CheckDigit(Request.QueryString[keyword].Trim())) { lblObj.Text = Request.QueryString[keyword].Trim(); for (int i = 0; i < rptObj.Items.Count; i++) { if (((System.Web.UI.WebControls.LinkButton)rptObj.Items[i].FindControl(objName)).CommandArgument == lblObj.Text) { ((System.Web.UI.WebControls.LinkButton)rptObj.Items[i].FindControl(objName)).ForeColor = System.Drawing.Color.Red; } } } else { ((System.Web.UI.WebControls.LinkButton)rptObj.Items[0].FindControl(objName)).ForeColor = System.Drawing.Color.Red; } }