• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 328
  • Last Modified:

Disabled vs Readonly property for text boxes

Is there any disadvantage using the disabled over the readonly for a text box?  I was told it was a better practice to use readonly.  I cannot seem to find any reference to this being a best practice.
0
monica73174
Asked:
monica73174
2 Solutions
 
Gurvinder Pal SinghCommented:
if you make a text box disabled, then you wont be able to get its value, and it won't get submitted to the server.
0
 
systanCommented:
when disabled you can't get/set a value
when readonly you can get value but you can't set, on textbox you can
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now