How to display Dataset data in HTML format

Posted by Self-Innovator under ASP.NET on 12/3/2012 | Points: 10 | Views : 2084 | Status : [Member] | Replies : 2
Hi,
I have an dataset i need to display those data inside an HTML table in .cs page(Code behind).Please find me how to achieve this & go through my code

 sb.AppendLine("<html><body><center><" +
"table border='1' cellpadding='0' cellspacing='0'>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><b>");
sb.Append("Kundali Details");
sb.Append("</b></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.Append("<td>")Server.HtmlDecode(dt.Rows[0]["Aries"].ToString();//I am getting error in this line
sb.Append("</td");
sb.Append("<td>")Server.HtmlDecode(dt.Rows[0]["Taurus"].ToString();

sb.Append("</td");
sb.Append("<td>Gemini");
sb.Append("</td");
sb.Append("<td>Cancer");
sb.Append("</td");
sb.AppendLine("</tr>");


Join Hands Change lives
Thanks & Regards
Straight Edge Society



Responses

Posted by: Sandeepmhatre on: 12/17/2012 [Member] Starter | Points: 25

Up
0
Down
Refer this article definitely this will help you.

http://sandeepmhatre.blogspot.com/2012/12/dynamic-html-template-in-aspnet.html

Sandeep M,
Software Developer
Follow me on :
http://sandeepmhatre.blogspot.in

Self-Innovator, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Megan00 on: 12/18/2012 [Member] Starter | Points: 25

Up
0
Down
I can suggest you a project that can export dataset to html on asp.net, may it helps you.

https://exportdata.codeplex.com/

Never give up! Smile to the world!
http://excelcsharp.blog.com/

Self-Innovator, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response