Skip to main content
se añadieron 10 caracteres en el cuerpo
Origen Enlace
Roger Torné
  • 7.6k
  • 13
  • 20
  • 33

intento de añadir una valor en mi modelo con una bucle como asi

           @for (int i = 0; i < MailList.Count; i++)
            {
               <InputText @bind-Value="MailList[i]"/>
            }

y obtengo una error

Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: The provided expression contains a InstanceMethodCallExpression1 which is not supported. FieldIdentifier only supports simple member accessors (fields, properties) of an object

Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: The provided expression contains a InstanceMethodCallExpression1 which is not supported. FieldIdentifier only supports simple member accessors (fields, properties) of an object

no comprendo de donde viene

intento de añadir una valor en mi modelo con una bucle como asi

           @for (int i = 0; i < MailList.Count; i++)
            {
               <InputText @bind-Value="MailList[i]"/>
            }

y obtengo una error

Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: The provided expression contains a InstanceMethodCallExpression1 which is not supported. FieldIdentifier only supports simple member accessors (fields, properties) of an object

no comprendo de donde viene

intento de añadir una valor en mi modelo con una bucle como asi

           @for (int i = 0; i < MailList.Count; i++)
            {
               <InputText @bind-Value="MailList[i]"/>
            }

y obtengo una error

Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: The provided expression contains a InstanceMethodCallExpression1 which is not supported. FieldIdentifier only supports simple member accessors (fields, properties) of an object

no comprendo de donde viene

Origen Enlace

¿Como puedo bind value en bucle en blazor?

intento de añadir una valor en mi modelo con una bucle como asi

           @for (int i = 0; i < MailList.Count; i++)
            {
               <InputText @bind-Value="MailList[i]"/>
            }

y obtengo una error

Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: The provided expression contains a InstanceMethodCallExpression1 which is not supported. FieldIdentifier only supports simple member accessors (fields, properties) of an object

no comprendo de donde viene