Skip to content

Blazor InputSelect does not support the type 'System.Int32'. #11181

@Kardo

Description

@Kardo

I wanto post data to database the value of dropdown is int when i save show me below error

blazor.server.js:15 [2019-06-13T13:31:50.629Z] Error: System.InvalidOperationException: Microsoft.AspNetCore.Components.Forms.InputSelect1[System.Int32] does not support the type 'System.Int32'.
at Microsoft.AspNetCore.Components.Forms.InputSelect1.TryParseValueFromString(String value, T& result, String& validationErrorMessage) at Microsoft.AspNetCore.Components.Forms.InputBase1.set_CurrentValueAsString(String value)
at Microsoft.AspNetCore.Components.Forms.InputSelect1.<BuildRenderTree>b__4_0(String __value) at Microsoft.AspNetCore.Components.BindMethods.<>c__DisplayClass9_0.<SetValueHandler>b__0(UIEventArgs eventArgs) --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Components.Rendering.Renderer.GetErrorHandledTask(Task taskToHandle)

screenshot

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions