This is my heading that i want to change from my c# code
<h3>Please Enter a number between 1 &
<asp:Label ID="lbl_max" runat="server"></asp:Label>
</h3>
I want to replace it with a string
string message = "This is new heading...";
i was thinking about something like this
lbl_max.value = message;
But it's not working... I am absolutely new to asp.net, so forgive me if it's a stupid question...
您可以这样做:
this.lbl_max.Text = "This is new heading...";
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.