Click here to Skip to main content
15,908,173 members
Home / Discussions / C#
   

C#

 
GeneralRe: Changing a Struct Property Value Pin
Richard Deeming13-Apr-15 4:12
mveRichard Deeming13-Apr-15 4:12 
QuestionC# Memory Leak Question Pin
Kevin Marois10-Apr-15 10:45
professionalKevin Marois10-Apr-15 10:45 
AnswerRe: C# Memory Leak Question Pin
jschell10-Apr-15 11:36
jschell10-Apr-15 11:36 
GeneralRe: C# Memory Leak Question Pin
Kevin Marois13-Apr-15 3:13
professionalKevin Marois13-Apr-15 3:13 
QuestionEasy Way to Display Multilingual Tooltip and Message Box Pin
Felix Obere10-Apr-15 10:03
Felix Obere10-Apr-15 10:03 
Questionconvert piece of code from C++ to C# Pin
MrKBA10-Apr-15 8:25
MrKBA10-Apr-15 8:25 
AnswerRe: convert piece of code from C++ to C# Pin
RedDk12-Apr-15 16:49
RedDk12-Apr-15 16:49 
Questionsingle quote inside double quote in C# ASP.NET Pin
Rajeshkunwar2510-Apr-15 3:42
Rajeshkunwar2510-Apr-15 3:42 
Code--- C#
XML
strHTML = "<table id='table1'> <colgroup><col width='190'/></colgroup><tbody>";
                for (int i = 0; i < objDs.Tables[0].Rows.Count; i++)
                {
                    if (i <= 10)
                    {
                        strUniqueID = "a" + i;
                        strBGColor = "a" + i.ToString();
                    }
                    else
                    {
                        strUniqueID = "a" + i;
                        strBGColor = "a" + (i - 1);
                    }
                    strSubject = objDs.Tables[0].Rows[i]["SubjectName"].ToString();
                    iSubjectID = Convert.ToInt32(objDs.Tables[0].Rows[i]["Subjectid"]);

<pre>
                strHTML = strHTML + &quot;&lt;tr&gt;&lt;td class=&#39;dark&#39;&gt;&lt;div id=&#39;&quot; + strUniqueID + &quot;&#39; class=&#39;drag clone &quot; + strBGColor + &quot;&#39;&gt;&quot; + strSubject + &quot;&lt;/div&gt;&lt;input id=&#39;b_&quot; + strUniqueID + &quot;&#39; class=&#39;&quot; + strUniqueID + &quot;&#39; type=&#39;button&#39; value=&#39;&#39; onclick=&#39;report(&quot; + strUniqueID + &quot;)&#39; title=&#39;Show only &quot; + strSubject + &quot;&#39;/&gt;&lt;/td&gt;&lt;/tr&gt;&quot;;

            }
            strHTML = strHTML + &quot;&lt;tr&gt;&lt;td class=&#39;trash&#39; title=&#39;Trash&#39;&gt;Trash&lt;/td&gt;&lt;/tr&gt;&quot;;
            strHTML = strHTML + &quot;&lt;/tbody&gt;&lt;/table&gt;&quot;;
            left.InnerHtml = strHTML;</pre>

---OutPut
English Test P
Kunal
Kunwar
Maths
Maths Test
Raj
Trash

AnswerRe: single quote inside double quote in C# ASP.NET Pin
OriginalGriff10-Apr-15 3:57
mveOriginalGriff10-Apr-15 3:57 
QuestionI can't get my splash screen to close Pin
jkirkerx9-Apr-15 11:00
professionaljkirkerx9-Apr-15 11:00 
AnswerRe: I can't get my splash screen to close Pin
Herman<T>.Instance9-Apr-15 23:54
Herman<T>.Instance9-Apr-15 23:54 
GeneralRe: I can't get my splash screen to close Pin
jkirkerx10-Apr-15 6:25
professionaljkirkerx10-Apr-15 6:25 
AnswerRe: I can't get my splash screen to close Pin
Richard MacCutchan10-Apr-15 2:20
mveRichard MacCutchan10-Apr-15 2:20 
GeneralRe: I can't get my splash screen to close Pin
jkirkerx10-Apr-15 6:46
professionaljkirkerx10-Apr-15 6:46 
GeneralRe: I can't get my splash screen to close Pin
Richard MacCutchan10-Apr-15 6:50
mveRichard MacCutchan10-Apr-15 6:50 
GeneralRe: I can't get my splash screen to close Pin
jkirkerx10-Apr-15 7:38
professionaljkirkerx10-Apr-15 7:38 
QuestionApplication.Run(new FormMain()); does not contain a constructor that takes 0 arguments Pin
jkirkerx9-Apr-15 7:02
professionaljkirkerx9-Apr-15 7:02 
AnswerRe: Application.Run(new FormMain()); does not contain a constructor that takes 0 arguments Pin
Richard Deeming9-Apr-15 7:05
mveRichard Deeming9-Apr-15 7:05 
GeneralRe: Application.Run(new FormMain()); does not contain a constructor that takes 0 arguments Pin
jkirkerx9-Apr-15 7:24
professionaljkirkerx9-Apr-15 7:24 
AnswerRe: Application.Run(new FormMain()); does not contain a constructor that takes 0 arguments Pin
OriginalGriff9-Apr-15 21:47
mveOriginalGriff9-Apr-15 21:47 
GeneralRe: Application.Run(new FormMain()); does not contain a constructor that takes 0 arguments Pin
jkirkerx10-Apr-15 6:24
professionaljkirkerx10-Apr-15 6:24 
GeneralRe: Application.Run(new FormMain()); does not contain a constructor that takes 0 arguments Pin
OriginalGriff10-Apr-15 6:32
mveOriginalGriff10-Apr-15 6:32 
GeneralRe: Application.Run(new FormMain()); does not contain a constructor that takes 0 arguments Pin
jkirkerx10-Apr-15 7:36
professionaljkirkerx10-Apr-15 7:36 
QuestionParse XML Sibling Pin
antrock1019-Apr-15 6:23
antrock1019-Apr-15 6:23 
AnswerRe: Parse XML Sibling Pin
Richard Deeming9-Apr-15 6:39
mveRichard Deeming9-Apr-15 6:39 

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.