[英]How to change aspx html heading from code behind?
這是我要從我的C#代碼更改的標題
<h3>Please Enter a number between 1 &
<asp:Label ID="lbl_max" runat="server"></asp:Label>
</h3>
我想用一個字符串代替
string message = "This is new heading...";
我在想這樣的事情
lbl_max.value = message;
但這是行不通的...我絕對不是asp.net的新手,如果這是一個愚蠢的問題,請原諒我...
您可以這樣做:
this.lbl_max.Text = "This is new heading...";
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.