Skip to content
Prototype to confirm setting an enum user control property to an invalid value would error out.
ASP C#
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
WhatHappensIfAscxPropertyIsSetWithATypo
.gitignore
README.md
WhatHappensIfAscxPropertyIsSetWithATypo.sln

README.md

What Happens If A User Control Property Is Set With A Typo in Markup?

Prototype to confirm setting an enum user control property to an invalid value would error out.

... it does.

Setting the DayOfWeek property to 'Typoday' gives the following error:

Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Cannot create an object of type 'WhatHappensIfAscxPropertyIsSetWithATypo.DayNames' from its string representation 'Typoday' for the 'DayOfWeek' property.

Something went wrong with that request. Please try again.