What is the best way to create HTML in C# code

What is the best way to create HTML in C# code:




Way to create HTML in C# code:



public HtmlString theHtmlTableMomToldYouAbout()
    {
        string content = "";
        HtmlString theEnvelopePlease = null;

        for (int i = 0; i < 5; i++)
        {
            content = content + "<tr><td>The Number Is: " + i + "</td></tr>";
        }
        theEnvelopePlease = new HtmlString(content);
        return theEnvelopePlease;     

Comments

Post a Comment

Popular posts from this blog