Select Page

Programatically building an HTML table in C#

These are the minimum using directives to add at the top of the code behind for building an HTML table from a SQL Server to a SqlDataReader concisely. [codesyntax lang=”csharp”] using System.Web.UI.HtmlControls; using System.Data; using...

Databound DropDownList in C#

Remember to add the usual using directives at the start of the codebehind [codesyntax lang=”csharp”] using System.Data; using System.Data.SqlClient; [/codesyntax] For a DropDownList on your ASP.NET page with an ID of Category such a [codesyntax...