المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : reading from a dynamically created textarea



C# Programming
08-27-2013, 10:18 PM
Hi Guys.

I am having a situation here, i want to read a dynamically textarea content,

String CommentOut = null; for (int intX = 0; intX < dt.Rows.Count; intX++ ) { CommentOut += "<div class='commentBox'>" + dt.Rows[intX][2].ToString() + " on:" + dt.Rows[intX][1]; CommentOut += "" + dt.Rows[intX][4].ToString() + ""; Quir = "Select Username_ as 'Posted By', comment_ as 'Comment', Date_ as 'date' "; Quir += " From CommentsTBL_ where CommentID_ = '" + dt.Rows[intX][0].ToString() + "'"; SqlCommand Sqlcom2 = new SqlCommand(Quir, Con); SqlDataAdapter Adapt2 = new SqlDataAdapter(Sqlcom2); DataTable dt2 = new DataTable(); Adapt2.Fill(dt2); for(int intY=0; intY