Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 171581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:00:47+00:00 2026-05-11T13:00:47+00:00

Did not receive any exact answer, thus I would have to accept mine …

  • 0

Did not receive any exact answer, thus I would have to accept mine … See code bellow

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:00:48+00:00Added an answer on May 11, 2026 at 1:00 pm
    using System; using System.Text.RegularExpressions; using System.Data; using System.Collections.Specialized; using System.Text;  namespace YourDebug.Name.Space {  /// <summary> ///Debugs passed objects and returns ready formatted html with the objects values /// </summary> public class HtmlDebugger {     public static string DumpDataSet(string msg, DataSet ds)     {         StringBuilder sb = new StringBuilder();          sb.Append('<p> START ' + msg + '</p>');         if (ds == null)             return msg + ' null ds passed ';          if (ds.Tables == null || ds.Tables.Count == 0)             return msg + ' no tables in ds ';              sb.Append('<p> DEBUG START --- ' + msg + '</p>');                         foreach (System.Data.DataTable dt in ds.Tables)             {                 sb.Append('================= My TableName is  ' +                 dt.TableName + ' ========================= START');                 sb.Append('<table>\n');                 int colNumberInRow = 0;                 foreach (System.Data.DataColumn dc in dt.Columns)                 {                     sb.Append(' <th>  ');                     sb.Append(' |' + colNumberInRow + '| ');                     sb.Append(dc.ColumnName + ' </th> ');                     colNumberInRow++;                 } //eof foreach (DataColumn dc in dt.Columns)                 int rowNum = 0;                 foreach (System.Data.DataRow dr in dt.Rows)                 {                     string strBackGround = String.Empty;                     if (rowNum% 2 == 0)                         strBackGround = ' bgcolor=\'#D2D2D2\' ';                         sb.Append('\n ' + rowNum + '<tr ' + strBackGround + ' >');                     int colNumber = 0;                     foreach (System.Data.DataColumn dc in dt.Columns)                     {                         sb.Append('<td> |' + colNumber + '| ');                         sb.Append(dr[dc].ToString() + ' </td>');                         colNumber++;                     } //eof foreach (DataColumn dc in dt.Columns)                     rowNum++;                     sb.Append('</tr>');                 }    //eof foreach (DataRow dr in dt.Rows)                 sb.Append(' \n');                 sb.Append('</table>');             }    //eof foreach (DataTable dt in sb.Append.Tables)             sb.Append('<p> DEBUG END--- ' + msg + '</p>');                          return sb.ToString();      }//eof method         public static string DumpMsgList(string msg,      System.Collections.Generic.List<GenApp.Dh.Msg> listMsgs)     {          System.Text.StringBuilder echo = new System.Text.StringBuilder();         if (listMsgs == null)             return 'null listMsgs passed for debugging ';          if (listMsgs.Count == 0)             return 'listMsgs.Count == 0';             echo.Append('<table>');         for (int msgCounter = 0; msgCounter < listMsgs.Count; msgCounter++)         {             GenApp.Dh.Msg objMsg = listMsgs[msgCounter];             string strBackGround = String.Empty;             if (msgCounter % 2 == 0)                 strBackGround = ' bgcolor=\'#D2D2D2\' ';               echo.Append('<tr' + strBackGround + '>');             echo.Append('<td>msg.MsgKey</td> <td> ' + objMsg.MsgKey + '</td>');             echo.Append('<td>msg.MsgId</td><td>' + objMsg.MsgId + '</td>');             echo.Append('</tr>');         } //eof foreach          echo.Append('</table>');         return echo.ToString();       } //eof method       public static string DumpIDataReader(string msg, IDataReader rdr)     {         StringBuilder sb = new StringBuilder();          if (rdr == null)             return ' <p> IDataReader rds is null </p>';               sb.Append('DEBUG START ---' + msg);             sb.Append('<table>');             int counter = 0;              while (rdr.Read() )             {                 string strBackGround = String.Empty;                 if (counter % 2 == 0)                     strBackGround = ' bgcolor=\'#3EBDE8\' ';                   sb.Append('<tr' + strBackGround + '>');                 for (int i = 0; i < rdr.FieldCount; i++)                 {                     sb.Append('<td>');                     sb.Append(rdr[i].ToString() + ' ');                     sb.Append('<td>');                 } //eof for                  sb.Append('</br>');                 sb.Append('</tr>');                 counter++;              }             sb.Append('<table>');             sb.Append('DEBUG END ---' + msg);               return sb.ToString();             } //eof method        public static string DumpListDictionary(string msg ,      ListDictionary list)     {       if (list == null)         return '<p> null list passed </p>';        if (list.Count == 0)         return '<p> list.Count = 0 </p> ';              System.Text.StringBuilder sb = new System.Text.StringBuilder();            sb.Append('<p> START DUMP ' + msg + ' </p>');           sb.Append('<table>');            int counter = 0;            foreach (object key in list.Keys)           {             string strBackGround = String.Empty;             if (counter % 2 == 0)               strBackGround = ' bgcolor=\'#D2D2D2\' ';              sb.Append('<tr' + strBackGround + '><td> key - </td><td> ' +              key.ToString());             sb.Append('</td><td>===</td><td>value - </td><td> ' + list[key] +              '</td></br></tr>');             counter++;           } //eof foreach             sb.Append('</table>');           sb.Append('<p> END DUMP ' + msg + ' </p>');       return sb.ToString();     } //eof method   } //eof class  

    } //eof namespace

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I did not make any changes on the code. I dont receive any errors
I did not find an answer to this question. I have a VOIP application.
I searched here but did not see an answer . I am using Delphi2010.
i am developing app that would receive data from server any time. i have
This has been asked before , but did not receive a satisfactory answer. From
Did not have luck with these examples: Javascript File remove Javascript FSO DeleteFile Method
Did not upgrade anything, nothing should have changed, but I may have a silly
I did not find any suitable questions answered yet, so I'd like to know
First off, I am cross-posting this from Server Fault because I did not receive
Here is the exact copy of my code: jsFiddleCode As you can see I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.