Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

500 B
Raw Blame
@using System.Text.Json
@model string
@{
    var area = ViewContext.RouteData.Values["area"]?.ToString();
    var options = JsonSerializer.Serialize(new {
        url = Url.Action("Collection", "Search", new { area, collectionId = Model }),
        placeholder = "Select collection...",
        textField = "Name",
        valueField = "Id",
        filter = "startswith"
    });
}
@Html.TextBoxFor(model => model, new { @class = "col-md-8", style = "width: 100%;", data_grand_select = options })