Click here to Skip to main content
15,889,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have an html table that I generate from my C# code that I display using Response.Write(""). Now I would like to show it in a specific place in my webpage. I tried to write to a label but didn't work (I knew it won't work anyways). Do somebody know how to do that?
Posted
Comments
ZurdoDev 19-Jun-12 8:17am    
Try creating a span and set its innertext to the html instead of using Response.Write. It might even work with a label if you set Label.Text = yourstring. The point is, do not use Response.Write.
Mabchour 1989 19-Jun-12 8:20am    
I have pictures in my table so basically a Label won't work!

Use Literal instead of Label
 
Share this answer
 
Comments
Pankaj Nikam 19-Jun-12 9:22am    
+5 Literal has the same purpose. Awesome answer.
I solved it, i wrote my code into a string and when the html is all ready in it I pass it to a span.innerHtml and it works perfectly, Thank you ryanb31 for the tip!
 
Share this answer
 
Comments
Prasad_Kulkarni 19-Jun-12 9:24am    
Post your answer here, not comment!

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900