Click here to Skip to main content
16,018,202 members

Comments by duonglg (Top 11 by date)

duonglg 12-May-13 9:53am View    
That code html is right, i have tested it on my program much time.
Your code build get result:

<ul>
<li>1. The <title> element
defines a title in the browser toolbar
provides a title for the page when it is added to favorites
displays a title for the page in search-engine results
2. CSS can be added to HTML in the following ways
Inline - using the style attribute in HTML elements
Internal - using the <style> element in the <head> section
External - using an external CSS file</li>
</ul>
duonglg 10-May-13 2:59am View    
In your script, it notice a error at lines.Select, error for this array, it dont have Error 10 'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found.
duonglg 10-May-13 1:31am View    
Output right:
<ul>
<li>0. The <title> element
<ul>
<li>defines a title in the browser toolbar </li>
<li>provides a title for the page when it is added to favorites </li>
<li>displays a title for the page in search-engine results </li>
</ul></li>
<li>1. CSS can be added to HTML in the following ways
<ul>
<li>Inline - using the style attribute in HTML elements</li>
<li>Internal - using the <style> element in the <head> section</li>
<li>External - using an external CSS file</li>
</ul></li>
</ul>
duonglg 10-May-13 1:29am View    
Yes, Matt Heffron tell right, output was desired result.
Help me more.
duonglg 8-May-13 9:54am View    
string strImport;
strImport = tarImportLink.Text.ToString();
string[] lines = strImport.Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
StringBuilder s = new StringBuilder();

for (int i = 0; i < lines.Length; i++)
{
string firstLi="<li>";
string endLi = "</li>";
s.AppendFormat("{0}{1}{2}{3}",firstLi,lines[i],endLi, Environment.NewLine);
}

string newString = s.ToString();
tarExportLink.EditValue = newString;


I do it now....
Please help me continue