This is a discussion on "asp:Label text in javascript" within the ASP.NET Forum section. This forum, and the thread "asp:Label text in javascript are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
asp:Label text in javascript
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
asp:Label text in javascript
Does anybody know how do I change the text in an asp:Label from client side?
|
|
|
|
|||
|
Re: asp:Label text in javascript
A Label control in ASP.NET renders as a <sppan> tag, and as long as you give it an ID it is recognisable to Javascript. Let's say your label is called lblLabel. In Javascript, you could do something along the following lines:
Kind regards, -Mark View my web development blog |
![]() |
| Tags |
| asplabel, text, javascript |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Appending Text Javascript | Utite | JavaScript Forum | 1 | Apr 28th, 2008 12:14 |
| [SOLVED] why isnt my javascript displaying the text | skat | JavaScript Forum | 3 | Jan 26th, 2008 20:43 |
| Javascript -> text include <- help | jahphill | JavaScript Forum | 3 | Oct 30th, 2007 22:06 |
| BBC Text Editor With Javascript | AdRock | JavaScript Forum | 2 | Oct 17th, 2007 15:10 |
| Unable to disable text(label) in javascript,working fine with IE, not with MOZILLA | balaji | JavaScript Forum | 1 | Jul 11th, 2007 09:55 |