Skip to content

String with special character returns "0" in Object type property #1810

@manikandan05

Description

@manikandan05

Hi Folks,

In my project, i have my own component with set of properties. Recently i have updated my project into .NET core. But i got the result differs from MVC but both values were same. I explained my scenario in below.

  1. I have the property named as Value for my component and its datatype as "object" (for receiving any type values)

<cgf-stu id="12" **cgpa="8/10"** **percentage="80%"**></cgf-stu>

  1. Initially i set the value in a format like "6/12". Its working fine in MVC project but not in .NET Core project.
  2. In .NET core it returns the value as "0". In my case i want to process multiple type of values.

In another one case, if i trying to set the value "50%" to object datatype property, my project was broken with error.

Could you suggest the solution in ASP.NET Core project, how to receive multiple types of data's in single datatype like as "Object" behavior in MVC project,.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions