Exemplo n.º 1
0
    private string LoadTitleNoLink(string head)
    {
        string     html = "";
        TinMoiNhat a    = new TinMoiNhat();
        DataTable  dtb  = a.TitleHead(head);

        if (dtb.Rows.Count > 0)
        {
            html += @"<a href='#' style='color: black; text-decoration: none;'>
                        " + dtb.Rows[0]["CateName"] + @"</a>";
        }
        return(html);
    }
Exemplo n.º 2
0
    private string LoadTitleTable(string head)
    {
        string     html = "";
        TinMoiNhat a    = new TinMoiNhat();
        DataTable  dtb  = a.TitleHead(head);

        if (dtb.Rows.Count > 0)
        {
            html += @"<a href='ChuyenMucCha.aspx?CateID=" + dtb.Rows[0]["CateID"].ToString() + @"' style='color: black; text-decoration: none;'>
                        " + dtb.Rows[0]["CateName"] + @"</a>";
        }
        return(html);
    }