Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Closed Issue: EnumDropDownListFor helper throws unhandled exception when model state is invalid and create page is loaded again [1389]

$
0
0
Model:

public class Class1
{
public int Id { get; set; }

public string Name { get; set; }

public EnumType Enum { get; set; }

public EnumType? NullableEnum { get; set; }

public FlagsEnumType FlagsEnum { get; set; }
}

[Flags]
public enum FlagsEnumType
{
Value1 = 0x0,
Value2 = 0x1
}

public enum EnumType
{
Value1,
Value2
}

![Image](C:\Users\kirthik\Pictures\Shot1.jpg)
![Image](C:\Users\kirthik\Pictures\Shot2.jpg)

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>