private void BindGrid(string est_id) { UltraWebGrid1.DataSource = questionObjects.GetQuestionObjects(est_id); UltraWebGrid1.DataBind(); Biz_EstInfos estInfo = new Biz_EstInfos(COMP_ID, est_id); Biz_QuestionPageStyles qPageStyle = new Biz_QuestionPageStyles(estInfo.Q_Style_ID); hdfQStylePageName.Value = qPageStyle.Question_Style_Page_Name; }
public static void BindQuestionObject(DropDownList ddl, string strEstID, bool isBlank) { Biz_QuestionObjects questionObject = new Biz_QuestionObjects(); ddl.DataSource = questionObject.GetQuestionObjects(strEstID); ddl.DataTextField = "Q_OBJ_NAME"; ddl.DataValueField = "Q_OBJ_ID"; ddl.DataBind(); if (isBlank) { ListItem itemA = new ListItem("----------", ""); ddl.Items.Insert(0, itemA); } }