protected void Page_Load(object sender, EventArgs e) { article_id = PLRequest.GetInt("article_id", 0); s_start_time = PLRequest.GetQueryString("date"); s_end_time = PLRequest.GetQueryString("date"); if (article_id <= 0) { JscriptMsg("传输参数不正确!", "back"); return; } if (!string.IsNullOrEmpty(s_start_time)) { DateTime time; if (!DateTime.TryParse(s_start_time, out time)) { start_time = null; } else { start_time = time; } } if (!string.IsNullOrEmpty(s_end_time)) { DateTime time; if (!DateTime.TryParse(s_end_time, out time)) { end_time = null; } else { end_time = time; } } if (!bll.Exists(article_id)) { JscriptMsg("商品不存在或已被删除!", "back"); return; } if (!Page.IsPostBack) { ShowInfo(article_id); } }