如何在asp.net中运行时删除文本框中的先前值 [英] how to remove previous value in textbox at run time in asp.net
本文介绍了如何在asp.net中运行时删除文本框中的先前值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在运行时在asp.net中删除文本框中的先前值
解决方案
尝试:
myTextBox.Text = ;
C#
txtBoxId.Text = String .Empty ;
javaScript
document .getElementById(' txtBoxId')。value = ;
在页面加载你已设置
textbox1.text = string.empty;
或
textbox1.text =;
how to remove previous value in textbox at run time in asp.net
解决方案
Try:
myTextBox.Text = "";
C#
txtBoxId.Text = String.Empty;
javaScript
document.getElementById('txtBoxId').value = "";
At the page load u have set
textbox1.text=string.empty;
or
textbox1.text="";
这篇关于如何在asp.net中运行时删除文本框中的先前值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文