如何在C#中重新加载页面时重置标签 [英] How Do I Reset Label While Reloading Page In C#
本文介绍了如何在C#中重新加载页面时重置标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在c#重新加载页面时重置标签
How do i reset label while reloading page in c#
推荐答案
在Page_Load事件中,只需输入
In your Page_Load event, just put
myLabelName.Text="Whatever value needs to go here";
显然你会想要替代您使用的标签名称代替 myLabel
。
Obviously you'll want to substitute the label name in that you are using in place of myLabel
.
这篇关于如何在C#中重新加载页面时重置标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文