updating textbox and label

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an asp.net page with textbox and label controls. The controls have a
text property. When I change the text property how do I get it to render on
the user's browser?
 
If you

a) Have the control correctly on the page (with an ID and runat="server"
attributes if they are declared in aspx), or if they are dynamical controls
added to the container's Controls collection properly

b) Set the text property before Page goes to render phase

rendering is handled automatically for you by the ASP.NET Page. You don't
have to do anything else but just set the property.

If you have an issue, could you describe it more accurately?
 
The controls render properly when the page first displays. The problem is I
want to change the "text" property in my code and then have the page update
in the user's browser window. The textbox is displaying status information
from custom hardware that is connected to the PC.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top