Forums - C# Corner

Forum guidelines
Abhijit P

Abhijit P

  • 0
  • 0
  • 0

C# code for Tabular list

Jul 14 2009 6:44 AM

I need to convert a list into tabular format. I tried using normal HTML code but didnt work. I need 2 cols. in the table. This is a aspx.cs file.
Please help me with this as i am a newbie.
The list code is given below:
 private void AddCategoryToMenu(string title)
  HtmlAnchor a = new HtmlAnchor();
  a.InnerHtml = Server.HtmlEncode(" " + title) + "
  a.HRef = "#" + Utils.RemoveIllegalCharacters(title);
  a.Attributes.Add("rel", "directory");
  HtmlGenericControl li = new HtmlGenericControl("img align=middle src=images/icons/" + title );

Answers (2)

C# Corner Chandigarh Developer Conference


Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.