Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

ASP:Label runat="server" and innerText

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob - 20 Feb 2008 08:38 GMT
When I use an ASP:Label with runat="server", and in JavaScript I use
innerText on the ASP:Label, the Text property is not reflected in an event
postback on the form.  ASP:TextBox is not an alternative for me because it
doesn't produce text which can be inline and wrappable with surrounding
text.  Is there anyway to accomplish what I am trying to do?

Thanks
Eliyahu Goldin - 20 Feb 2008 08:51 GMT
That's right, client changes to a Label won't propagate to the server. You
can copy the text into a hidden input control to pass it on.

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

> When I use an ASP:Label with runat="server", and in JavaScript I use
> innerText on the ASP:Label, the Text property is not reflected in an event
[quoted text clipped - 3 lines]
>
> Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.