Click here to Skip to main content
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)



Advertise | Privacy | Mobile
Web04 | 2.8.141022.1 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2014
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