Loading...

ParameterPrefix


Convert Prefix Example
2024/10/5 δΈ‹εˆ8:10:19
Strawberry
@inherits ControlComponent

<asp.TextBox @bind-convert-Text="this.date" format-Text="yyyy-MM-dd HH:mm:ss"></asp.TextBox>

@this.date.ToString()

<hr />

<asp.DropDownList @bind-convert-SelectedValue="this.enumValue">
    <asp.ListItem>Chocolate</asp.ListItem>
    <asp.ListItem>Coconut</asp.ListItem>
    <asp.ListItem>Mint</asp.ListItem>
    <asp.ListItem>Strawberry</asp.ListItem>
    <asp.ListItem>Vanilla</asp.ListItem>
</asp.DropDownList>

@this.enumValue.ToString()

@code {
                                            DateTime date = DateTime.Now;
                                            ExampleEnum enumValue = ExampleEnum.Strawberry;

                                            enum ExampleEnum
    {
        Chocolate,
        Coconut,
        Mint,
        Strawberry,
        Vanilla
    }
}
Copyright Β© 2026 Jurio li All rights reserved.
An unhandled error has occurred. Reload πŸ—™