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 / Languages / C# / December 2005

Tip: Looking for answers? Try searching our database.

ASP.Net Readonly textbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matias - 22 Dec 2005 14:56 GMT
Hi!
I'm working in an application in VS2005. I have a Website that has a page
where the user has to fill in some dates. In 2003 I used to have a function
in javascript that would popup a calendar, the user would select the date
there and then that date would be entered in a read-only textbox, so I was
sure that the format was correct. Now this works ok in 2005, but when I try
to read the text from that textbox in codebehind, I always get what was on
the textbox when the page was rendered. I tried setting the readonly
attribute to false, and it works then, so it's most likely a bug. Does
anybody know a workaround??
Thanks in advance,

Matias
Christopher Reed - 22 Dec 2005 15:59 GMT
Try setting the TextBox.Enabled property to False and then set the Text
property.  The ReadOnly property prevents changing the original content.
Signature

Christopher A. Reed
"The oxen are slow, but the earth is patient."

> Hi!
> I'm working in an application in VS2005. I have a Website that has a page
[quoted text clipped - 9 lines]
>
> Matias

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.