.aspx:
.Cs file
var Comments = DataBase.retive(txtTID.Text);
StringBuilder builder = new StringBuilder();
builder.Append("
| Comments | createdate |
| createad by |
foreach (var I in Comments)
{
string comments = I.Comment;
string createdby = I.Createdby;
DateTime createdata = I.Createdate;
String fname = I.datafile;
builder.Append("
| " + comments + " | " + createdata + " |
| " + createdby + " | |
| " + fname+ " |
}
taskdata.InnerHtml = builder.ToString();
i will get OutPut. i am create only table. but My output is d't reach my Expectations. my view is create seperate div with styles. under taskdata.

Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Mar 4, 2015, 7:48 PM EST
remove bold div tag from your code then no extra div will add in your div.
veerendra kumar47 reputationPosted Mar 4, 2015, 7:56 PM EST
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Mar 4, 2015, 7:57 PM EST
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Mar 4, 2015, 7:59 PM EST
In your .aspx:
< table id="taskdata" runat="server">
table>
In cs use
builder.Append" + comments + " " + createdata + " " + createdby + " " + fname+ " ");
I want create seperate under tasakdata div.


then inside td create a div
<div>" + comments + "div> <div>" + createdata + "div> <div>" + createdby + "div> <div>" + fname+ "div>
"); 
Sorry sir
tag programatically from the code-behind of my aspx file. Basically, I would like to a table to this . tag. tags in aspx is that the number of the tables is unknown until runtime and each table should go into its own tag. Know the answer? Forums 01
Arun PottiAnswers in the forums20answers02
Tahir AnsariAnswers in the forums5answers03
Kamlesh KumarAnswers in the forums5answers04
Sam HobbsAnswers in the forums4answers05
Željko PerićAnswers in the forums3answers?YouYour name goes here.Every answer: 20 SHARP.Join Full leaderboard → 2026
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
veerendra kumar47 reputationPosted Mar 4, 2015, 8:02 PM EST
created div with styles.
Example view.
i am place two styles. but i want similar style divs
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Mar 4, 2015, 8:06 PM EST
like
builder.Append("
veerendra kumar47 reputationPosted Mar 4, 2015, 8:20 PM EST
NOt working.
I would like to add the
There are a number of tables which are created dynamically in the code-behind. Each table should go to its own
The reason that I can't have the
How is this possible?
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts