Top "Readonly-attribute" questions

How to create a readonly textbox in ASP.NET MVC3 Razor

How do I create a readonly textbox in ASP.NET MVC3 with the Razor view engine? Is there an HTMLHelper …

c# asp.net-mvc-3 razor html-helper readonly-attribute
react bootstrap readonly input within formcontrol

I am using react bootstrap and this framework provides some nice FormControls. But I would like to make the Input …

reactjs react-bootstrap form-control readonly-attribute
WTForms support for input readonly attribute?

Here they say it's not supported out of the box. Do you know a way to make HTML input form …

python html forms wtforms readonly-attribute
css input textbox readonly to set background color not working

I have an old Classic ASP form that I need to add functionality to and I am using IE11. I …

html css readonly-attribute
python, __slots__, and "attribute is read-only"

I want to create an object in python that has a few attributes and I want to protect myself from …

python exception descriptor readonly-attribute
How can I make a read only version of a class?

I have a class with various public properties which I allow users to edit through a property grid. For persistence …

c# .net readonly-attribute
Assign value to `readonly` properties from methods called by the constructor

I have a simple class, and I want to assign a value to a readonly property in a method initiated …

typescript class constructor readonly-attribute
How to make a radio button read-only but not disabled?

The question "How to make radio button read-only?" has already been asked n times. But the solution is always disabled="…

html disabled-input readonly-attribute
PropertyGrid readonly property on object-level

I want to display multiple instances of one class in my PropertyGrid. The class looks like this: public class Parameter { […

c# .net propertygrid propertydescriptor readonly-attribute
How to Setup a readonly property with Moq?

I am trying to unit test using Moq. Here is the example code: public class ConcreteClass { private readonly FirstPropery firstProperty; …

c# moq readonly-attribute