473,403 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

updating textbox and label

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?
Nov 19 '05 #1
2 1208
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?

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
"Al the programmer" <Al*************@discussions.microsoft.com> wrote in
message news:62**********************************@microsof t.com...
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?

Nov 19 '05 #2
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.

"Teemu Keiski" wrote:
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?

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
"Al the programmer" <Al*************@discussions.microsoft.com> wrote in
message news:62**********************************@microsof t.com...
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?


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: sekisho | last post by:
I'm dynamically adding a column of labels and a column of text boxes to a panel on a webform, based on data returned from an SQL query, which the user builds by selecting options from a few...
10
by: sqlboy2000 | last post by:
Hello all, I have something very simple going on here and I'm scratching my head as to what the problem is. There are 4 items in my project, 2 webforms, a user control, and a module: ...
22
by: Mal Ball | last post by:
I hope I have the right forum for this question. I have an existing Windows application which uses a SQL Server database and stored procedures. I am now developing a web application to use the same...
1
by: MasterChief | last post by:
I have a FormView that won't update at all. I have looked at thing such as datakeys and making sure the update command is correct but I can't find the problem. Here is my code. Could the item_id...
0
by: Michael Kellogg | last post by:
I have a problem wherein a query that updates a GridView doesn't seem to really stay in sync with a label I have above the GridView. I have a GridView object that I'm updating with information...
0
by: Mike P | last post by:
I have a formview which has exactly the same parameters as a detailsview, but I get an error when I try to update when editing the formview. Here are my update parameters : <UpdateParameters>...
3
by: Trez | last post by:
Hey guys, Am new at using ASP.Net. am having some problems updating my SQL DB. whenever i try i get this Error. Can someone help me? Incorrect syntax near 'nvarchar'. Description: An unhandled...
0
by: TheDebbis | last post by:
I'm making a quick CD catalog to help me learn ASP.NET (using C# primarily.) I have a number of gridview's on my site that are working properly, but for some reason, one is not updating or deleting....
23
by: tanya2001 | last post by:
hi all.. I am trying to update my datagrid in my webform...but its not getting updated..though in the database it removing the <null> and inserting a blank field....its not taking the input which m...
1
by: cerilocke | last post by:
I have a repeater in which I have a hidden field (input type = hidden), a textbox (asp:TextBox), a checkbox (input type = checkbox) and a label (asp:Label). I have bound all four items to the same...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.