Beispiel #1
0
        private void LoaFeedback()
        {
            try
            {
                string id = Request.QueryString["idS"].ToString();
                var    dt = new DataTable();
                dt = ShowTimesService.ShowTimes_GetById(id);

                RptComment.DataSource = FeedbackService.Feedback_GetByTop("", "FilId='" + dt.Rows[0]["FilId"].ToString() + "'", "");
                RptComment.DataBind();
            }
            catch (Exception ex)
            {
                WebMsgBox.Show(ex.Message);
            }
        }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["user"] == null || Session["friend"] == null)
     {
         Response.Redirect("Login.aspx");
     }
     else
     {
         if (!IsPostBack)
         {
             DataBindToRepeater(1);
             int       albumid = Convert.ToInt32(Session["albumid"].ToString());
             string    sql     = "select * from UsersAlbum where albumid='" + albumid + "'";
             DataTable dt      = DataClass.DataT(sql);
             RptComment.DataSource = dt;
             RptComment.DataBind();
         }
     }
 }
Beispiel #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["user"] == null)
     {
         Response.Redirect("Login.aspx");
     }
     else
     {
         int  logid = Convert.ToInt32(Session["logid"].ToString()); //获取传递的日志id
         Logs log   = new Logs(logid);                              //实例化日志
         txtHeadline.Text = log.Headline;
         txtContent.Text  = log.Content;
         lbTime.Text      = log.Time;
         if (!IsPostBack)
         {
             string    sql = "select * from UsersLog where logid='" + logid + "'";
             DataTable dt  = DataClass.DataT(sql);
             RptComment.DataSource = dt;
             RptComment.DataBind();
         }
     }
 }