Click here to Skip to main content
11,721,385 members (81,072 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET .NET
Pls some one tell that how to show data from table on page without using any server control...
Posted 14-Feb-13 2:03am
Comments
vinodkumarnie at 14-Feb-13 23:34pm
   
If you don't want server control means which control you want..? How your data should shown..? Which format...?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

If you don't want to use any server control than you can create HTML table at run-time to show table data.



edited by Haris: Caps removed.
  Permalink  
v3
Comments
joe_j at 14-Feb-13 8:23am
   
please do not use Cap letters, looks rude.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

could be of help
display data in html table[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Hi chander_rani,
 
For perform this task you can use StringBulider class with his append function and write following code
 
StringBuilder stringBuilder= new StringBuilder();
stringBuilder.Append("<table>");
foreach(DataRow row in (yourtablename).Rows)
{
stringBuilder.Append("<tr>");
  for (int i = 0; i < (yourtablename).Columns.Count; i++)
  {
     stringBuilder.Append("<td>"+row[i]+"</td>");
  }
  stringBuilder.Append("</tr>");
 
}
stringBuilder.Append("</table>");

try this, it will fulfill your requirement

Best Regards,

Amit Vishwakarma
  Permalink  
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 380
1 OriginalGriff 254
2 Mika Wendelius 170
3 cyycoish 70
4 ppolymorphe 66
0 Sergey Alexandrovich Kryukov 2,249
1 OriginalGriff 1,024
2 F-ES Sitecore 690
3 Maciej Los 619
4 Richard MacCutchan 580


Advertise | Privacy | Mobile
Web03 | 2.8.150901.1 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100