Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 show datatable data in page

Author  Topic 

guptaalok12
Starting Member

5 Posts

Posted - 2008-09-23 : 05:08:32
i have some date in DataTable .i want to display it in the page itself without using any data bind control.is it passible.
DataTable DT;
will it work-
Response.Write(DT);

alokgupta

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-09-23 : 05:21:49
Yes it will work.

But are you using this in your code behind or aspx page ? If its in your code behind and you are not using a data bound countrol e.g label1.text = DT.ToString()

It will appear on the top of your page. Unless you put it in <%%> closing tags and use the page.bind() property

Go to Top of Page
   

- Advertisement -