且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在C#中重新加载页面时重置标签

更新时间:2023-11-19 20:07:22

在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.