Click here to Skip to main content
15,887,350 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: reading from a dynamically created textarea Pin
Jason Gleim28-Aug-13 7:24
professionalJason Gleim28-Aug-13 7:24 
GeneralRe: reading from a dynamically created textarea Pin
Hbr_Tha_real28-Aug-13 11:19
Hbr_Tha_real28-Aug-13 11:19 
GeneralRe: reading from a dynamically created textarea Pin
Jason Gleim29-Aug-13 4:14
professionalJason Gleim29-Aug-13 4:14 
GeneralRe: reading from a dynamically created textarea Pin
Hbr_Tha_real29-Aug-13 12:16
Hbr_Tha_real29-Aug-13 12:16 
QuestionSerial Port reading char string Pin
Blubbo27-Aug-13 3:02
Blubbo27-Aug-13 3:02 
AnswerRe: Serial Port reading char string Pin
OriginalGriff27-Aug-13 3:41
mveOriginalGriff27-Aug-13 3:41 
AnswerRe: Serial Port reading char string Pin
Jason Gleim27-Aug-13 5:24
professionalJason Gleim27-Aug-13 5:24 
QuestionHow to paste outside of my application Pin
Mahmoud EL-Shazly26-Aug-13 13:32
Mahmoud EL-Shazly26-Aug-13 13:32 
AnswerRe: How to paste outside of my application Pin
BillWoodruff26-Aug-13 13:46
professionalBillWoodruff26-Aug-13 13:46 
GeneralRe: How to paste outside of my application Pin
Mahmoud EL-Shazly27-Aug-13 11:51
Mahmoud EL-Shazly27-Aug-13 11:51 
GeneralRe: How to paste outside of my application Pin
Bernhard Hiller27-Aug-13 20:38
Bernhard Hiller27-Aug-13 20:38 
GeneralRe: How to paste outside of my application Pin
Mahmoud EL-Shazly28-Aug-13 0:42
Mahmoud EL-Shazly28-Aug-13 0:42 
GeneralRe: How to paste outside of my application Pin
DaveyM6928-Aug-13 1:35
professionalDaveyM6928-Aug-13 1:35 
GeneralRe: How to paste outside of my application Pin
Mahmoud EL-Shazly1-Oct-13 20:01
Mahmoud EL-Shazly1-Oct-13 20:01 
AnswerRe: How to paste outside of my application Pin
Bernhard Hiller26-Aug-13 20:52
Bernhard Hiller26-Aug-13 20:52 

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.