S
Steve S
Heres what I want to do...User types into a texbox, clicks a button, the
button saves that text to a file. The problem is that when I click the
submit button, any changes made to the textbox are lost, and it reloads what
was previously there.
Any ideas?
try
{
StreamWriter sw = new StreamWriter(sVirtualDir + @"\News.txt",false);
sw.Write(TextBox1.Text);
sw.Flush();
sw.Close();
}
button saves that text to a file. The problem is that when I click the
submit button, any changes made to the textbox are lost, and it reloads what
was previously there.
Any ideas?
try
{
StreamWriter sw = new StreamWriter(sVirtualDir + @"\News.txt",false);
sw.Write(TextBox1.Text);
sw.Flush();
sw.Close();
}