我尝试了 TextBox1.Clear
但它不起作用并给我错误。
protected void Page_Load(object sender, EventArgs e)
{
TextBox1.Clear
}
最佳答案
这样做,
TextBox1.Text = string.Empty;
关于c# - 如何清除 asp.net 中的文本框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22882283/