append in word document using c#
<pre><code>//Text to word file
StringBuilder strBuilder = newStringBuilder();
strBuilder.Append("&lt;h1 title='Header' align='Center'&gt;Writing To Word Using ASP.NET&lt;/h1&gt; ".ToString());
strBuilder.Append("&lt;br&gt;".ToString());
strBuilder.Append("&lt;table align='Center'&gt;".ToString());
strBuilder.Append("&lt;tr&gt;".ToString());
**strBuilder.Append("&lt;td style='width:100px;color:green'&gt;Date :&lt;asp:Label ID='lbl_dte' runat='server' Text=&gt;Labe2&lt;/asp:Label&gt;&lt;/td&gt;".ToString());**
strBuilder.Append("&lt;td style='width:100px;color:red'&gt;India&lt;/td&gt;".ToString());'

kstrBuilder.Append("&lt;/tr&gt;".ToString());
strBuilder.Append("&lt;/table&gt;".ToString());
// string strPath = Request.PhysicalApplicationPath + "\\document\\Test.doc";
string strPath = filename;
//string strTextToWrite = TextBox1.Text;
FileStream fStream = newFileStream (strPath,FileMode.Append);
fStream.Close();
StreamWriter sWriter = newStreamWriter(strPath);
sWriter.Write(strBuilder);
sWriter.Close();
</code></pre>

<p>I add a asp label <code>&lt;asp:Label ID='lbl_dte' runat='server' Text=&gt;Labe2&lt;/asp:Label&gt;</code></p>

<p>Can I get the contol of label in code behind(c# asp.net)?</p>
