Esempio n. 1
0
        private void LoadInfo()
        {
            int id = RequestHelper.GetRequestInt("id", 0);

            if (id > 0)
            {
                DataTable dt = operate.GetMessageByID(id);
                if (dt != null && dt.Rows.Count > 0)
                {
                    labtitle.Text   = HttpUtility.HtmlDecode(dt.Rows[0]["title"].ToString());
                    labcontext.Text = HttpUtility.HtmlDecode(dt.Rows[0]["context"].ToString());
                }
                else
                {
                    Alert.ShowInParent("读取数据失败!", String.Empty, ActiveWindow.GetHideReference());
                }
            }
            else
            {
                Alert.ShowInParent("参数错误!", String.Empty, ActiveWindow.GetHideReference());
            }
        }