While the toot-tip says,

I tried using it but could not make it to work. I am not sure how it works and about its functionality.
So what purpose does this built-in attribute ReadOnlyserve?
Any inputs will be appreciated. Thank you.
While the toot-tip says,

I tried using it but could not make it to work. I am not sure how it works and about its functionality.
So what purpose does this built-in attribute ReadOnlyserve?
Any inputs will be appreciated. Thank you.
@Html.EditorFor(
model => model.id_to_fetch,
new {
htmlAttributes = new {
@class = "form-control" , @readonly = "readonly"
}
}
)