我正在尝试输入在Html文件中显示的c#TextBox值。如何从c#输入文本框值并将值显示在html文件中?
答案 0 :(得分:-2)
StringBuilder sb = new StringBuilder();
//put textbox value in html file C:\Users\files\source\repos\MyApplication\MyApplication\bin\Debug
String Header = ReadHtmlFile("file.html");
//sb.AppendLine(Header);
sb.Append(Header.Replace("[[NA]]", textBox1.Text));
return sb.ToString();