Why can't I change the value of a label ?

liunx

Guest
The file default.aspx declares the following.
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="default.aspx.vb" Inherits="ShareFileHd._default"%>

Therefore , I look up the default.aspx.vb. It declares

Protected WithEvents message_welcome As System.Web.UI.WebControls.Label

No matter what I set in message_welcome.text, it always shows the same thing. How can I change the value ?where are you trying to change the text?

I would double click the webform and then put the code to change the text in the page_load event.

Label1.text = "Some Text"
 
Back
Top