CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets for: Groove Commerce
C#
public static DataTable ConvertDataTableDelimited(DataTable dt)
        {
            System.Collections.Generic.List<String> aryStrRowData = new System.Collections.Generic.List<String>();
            DataTable dtNewData = new DataTable();
            dtNewData.Columns.Add("data", typeof(String));
            int iNumCols = dt.Columns.Count;
 
            foreach (DataRow dr in dt.Rows)
            {
                for (int i = 0; i < iNumCols; i++)
by Groove Commerce   August 27, 2009 @ 11:34am
Tags:
136 Views
no comments
 
C#
public static DataSet ConvertXmlNodeDataSet(XmlNode node)
{
    DataSet dsData = new DataSet();
    dsData.ReadXml(new XmlTextReader(node.OuterXml, XmlNodeType.Element, null));
 
    return dsData;
}
by Groove Commerce   August 27, 2009 @ 11:33am
Tags:
378 Views
no comments
 
C#
 
// Renders ANY control into HTML
public static string RenderControl(Control ctrl)
{
    StringBuilder sb = new StringBuilder();
    StringWriter tw = new StringWriter(sb);
    HtmlTextWriter hw = new HtmlTextWriter(tw);
 
    ctrl.RenderControl(hw);
    return sb.ToString();
by Groove Commerce   August 27, 2009 @ 11:32am
227 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate