Ejemplo n.º 1
0
    /// <summary>
    /// Get Admin Details
    /// </summary>
    /// <param name="p">For Getting For Admin</param>
    private void FillRecords(int Id)
    {
        DataTable table = BAL_News.GetNewsEventsListForNewsId(Id);

        dvDetails.DataSource = table;
        dvDetails.DataBind();
    }
    private void GetRecords()
    {
        DataTable table = BAL_News.GetNewsEventsListForNewsId(Convert.ToInt32(lblMode.Text));

        if (table != null && table.Rows.Count > 0)
        {
            txtTitle.Text    = Convert.ToString(table.Rows[0]["Title"]);
            txtDesc.Value    = Convert.ToString(table.Rows[0]["Description"]);
            txtLink.Text     = Convert.ToString(table.Rows[0]["NewsLink"]);
            txtNewsDate.Text = Convert.ToString(table.Rows[0]["NewsDate"]);
        }
    }