protected void Page_Load(object sender, EventArgs e) { string codeStr = Request.QueryString["code"]; if (!IsPostBack) { List <Model.Activity> list = WebBLL.GetActivity(codeStr); if (list.Count != 0) { name.Value = list[0].NAME.ToString(); code.Value = list[0].CODE.ToString(); id.Value = list[0].ID.ToString(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { codeStr = Request.QueryString["code"]; List <Model.Activity> list = WebBLL.GetActivity(codeStr); if (list.Count != 0) { name.InnerText = list[0].NAME; activityID.Value = list[0].ID.ToString(); type.Value = list[0].TYPE.ToString(); BindGrid(list[0].ID); BindDropList(); } } }
protected void Page_Load(object sender, EventArgs e) { try { timeBuyCode = Request.QueryString["timeBuyCode"]; normalCode = Request.QueryString["normalCode"]; pollCode = Request.QueryString["pollCode"]; var listTimeBuy = WebBLL.GetActivity(timeBuyCode); listTimeBuyPro = GetActivityPro(listTimeBuy[0].ID); var listNormal = WebBLL.GetActivity(normalCode); listNormalPro = GetActivityPro(listNormal[0].ID); var listPoll = WebBLL.GetActivity(pollCode); listPollPro = GetActivityPro(listPoll[0].ID); } catch (Exception) { GoNoFound(); } }