Click here to Skip to main content
15,895,864 members
Home / Discussions / C#
   

C#

 
GeneralRe: MATLAB Builder NE deployment problem Pin
shwetanisha29-Aug-13 22:25
shwetanisha29-Aug-13 22:25 
QuestionWindows Services using C# and SQL data Pin
Member 1023886728-Aug-13 20:07
Member 1023886728-Aug-13 20:07 
AnswerRe: Windows Services using C# and SQL data Pin
OriginalGriff28-Aug-13 21:13
mveOriginalGriff28-Aug-13 21:13 
GeneralRe: Windows Services using C# and SQL data Pin
Member 1023886728-Aug-13 21:43
Member 1023886728-Aug-13 21:43 
GeneralRe: Windows Services using C# and SQL data Pin
OriginalGriff28-Aug-13 22:00
mveOriginalGriff28-Aug-13 22:00 
AnswerRe: Windows Services using C# and SQL data Pin
Bernhard Hiller28-Aug-13 21:17
Bernhard Hiller28-Aug-13 21:17 
GeneralRe: Windows Services using C# and SQL data Pin
Member 1023886728-Aug-13 21:46
Member 1023886728-Aug-13 21:46 
QuestionDataGridView Printing Pin
Tsukasa8328-Aug-13 7:33
Tsukasa8328-Aug-13 7:33 
AnswerRe: DataGridView Printing Pin
OriginalGriff28-Aug-13 21:15
mveOriginalGriff28-Aug-13 21:15 
QuestionRead XML string, Manipulate, Store in Dataset & SqlBulkCopy Pin
murugesan.ks28-Aug-13 7:32
murugesan.ks28-Aug-13 7:32 
AnswerRe: Read XML string, Manipulate, Store in Dataset & SqlBulkCopy Pin
SledgeHammer0128-Aug-13 9:26
SledgeHammer0128-Aug-13 9:26 
QuestionConverting MS-office files to PDF Pin
sujeet32128-Aug-13 0:48
sujeet32128-Aug-13 0:48 
AnswerRe: Converting MS-office files to PDF Pin
Simon_Whale28-Aug-13 0:54
Simon_Whale28-Aug-13 0:54 
Questionapprove file Pin
Diya Ayesa28-Aug-13 0:10
Diya Ayesa28-Aug-13 0:10 
AnswerRe: approve file Pin
Eddy Vluggen28-Aug-13 2:07
professionalEddy Vluggen28-Aug-13 2:07 
GeneralRe: approve file Pin
Forbiddenx28-Aug-13 6:42
Forbiddenx28-Aug-13 6:42 
QuestionInformation about JPEG Header Pin
Discover.ir27-Aug-13 23:40
Discover.ir27-Aug-13 23:40 
AnswerRe: Information about JPEG Header Pin
Amarnath S28-Aug-13 0:22
professionalAmarnath S28-Aug-13 0:22 
GeneralRe: Information about JPEG Header Pin
Discover.ir28-Aug-13 1:35
Discover.ir28-Aug-13 1:35 
AnswerRe: Information about JPEG Header Pin
Dave Kreskowiak28-Aug-13 2:17
mveDave Kreskowiak28-Aug-13 2:17 
GeneralRe: Information about JPEG Header Pin
Discover.ir28-Aug-13 2:27
Discover.ir28-Aug-13 2:27 
GeneralRe: Information about JPEG Header Pin
Dave Kreskowiak28-Aug-13 3:20
mveDave Kreskowiak28-Aug-13 3:20 
Questionreading from a dynamically created textarea Pin
Hbr_Tha_real27-Aug-13 4:27
Hbr_Tha_real27-Aug-13 4:27 
Hi Guys.

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

C#
String CommentOut = null;

for (int intX = 0; intX < dt.Rows.Count; intX++ )
    {
        CommentOut += "<div class='commentBox'><table><tr><th>" + dt.Rows[intX][2].ToString() + " on:" + dt.Rows[intX][1];
        CommentOut += "</th></tr><tr><td bgcolor='#f5f1f1'>" + dt.Rows[intX][4].ToString() + "</td></tr><tr><td class='commentBoxIns'>";

        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<dt2.Rows.Count; intY++){

        CommentOut += "<table width='70%' align='right'></tr><th>" + dt2.Rows[intY][0].ToString() + " on:" + dt2.Rows[intY][2].ToString();
        CommentOut += "</th></tr><tr/><td>" + dt2.Rows[intY][1].ToString();
        CommentOut+= "</td></tr></table>";
}
        Adapt2.Dispose();
        dt2.Dispose();
        Sqlcom2.Dispose();

        CommentOut += "</td></tr><tr><td><textarea id='comment" + intX + "' name='comment" + intX + "' rows='5' cols='20' style='width:97%;' runat='server'>type your comment here</textarea>";

    //IsueViewAndComment.aspx
        CommentOut += "</td></tr><tr class='commentBoxCom'><td><a href=?ID1=" + dt.Rows[intX][0].ToString() + "&ID2=comment" + intX + ">Comment</a>";


        //CommentOut += "<script type='text/javascript'>";
        //CommentOut+=" function fub" + intX + "(StrId, comment" + intX + ") {";
        //CommentOut+= " var prtContent = document.getElementById(StrId)";
        //CommentOut += " var prtContent = document.getElementById(comment" + intX + ")}</script>";

        CommentOut += "</td></tr><tr><td>";
    CommentOut += "</table>  </div><br/>";
    }

this.LitCont.Text = CommentOut;

AnswerRe: reading from a dynamically created textarea Pin
Jason Gleim27-Aug-13 4:59
professionalJason Gleim27-Aug-13 4:59 
GeneralRe: reading from a dynamically created textarea Pin
Hbr_Tha_real28-Aug-13 1:53
Hbr_Tha_real28-Aug-13 1:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.