Archive for the month May 2009

« Older Entries  

Using Expressions in DataTable DataColumn

Using Expressions in DataTable DataColumn :
Do you know :
How to use expression in datatable datacolumn
  ?
The expression syntax available is used to create customize columns, it is probably much richer than you might think. Expression Property of the DataColumn
Dynamically changing DataTable Column Value using Expressions.
private void CalcColumns()
{
    DataTable table = new DataTable ();
    // Create [...]

SQL Server 2005 OWC11 Installation Failure

While installing SQL server 2005, i have come across the
 error
ERROR 1706 Setup cannot find the required files,Check
your connection to the network, or cd rom, For other
potential solutions to this problem, see c:\Program
Files\Microsoft Office\Office11\1033\Setup.chm

Solution :
You need to run the file OWC11.msi, its available in
Tools folder of SQL 2005
also you can download from Miscrosoft’s Site
http://www.microsoft.com/downloads/details.aspx?FamilyId
=7287252C-402E-4F72-97A5-E0FD290D4B76&displaylang=en
 
then try to [...]

How to remove Bad Junk HTML Tags in C#

public static string RemoveBadHTMLTags(string htmlContent)
{
    Regex TagRegex = new Regex(
      “(<script>.*</script>)|(<object>.*</object>)|(<body>.*</body>) |
     (<embed>.*</embed>)|(<frameset>.*</frameset>)|

(<frame>.*</frame>)|
     (<iframe>.*</iframe>)|(<meta>.*</meta>)|(<ling>.*</ling>)|
     (<style>.*</style>)”);
    html = TagRegex.Replace(htmlContent, “”);
    return htmlContent;