Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a new project About Key Performance Index Application in my Company ,

I have a problem with 'Edit'

i Created the form dynamically,
and i used blazor server side application,

i have to create CRUD (create,Read,Update,Delete)
I have been finished with Create,Read ,and Delete

but i have a few problem with edit ,

i have looped dropdown list from my database
like this

@foreach (M_Indicator_KPI items in allindicator)
             <div class="form-group">
                 <label class="col-form-label">@items.IndicatorName</label>
                     allkriteria = kriteriaservices.GetDatabyIndicator(@items.IndicatorID.ToString()).Result;
                     <select class="form-controlselect"
                         <option value="">--Pilih Kriteria--</option>
                         @foreach (M_Kriteria_KPI item in allkriteria)
                             <option value="@item.Indicator_ID#@item.KriteriaID">
                                 @item.Criteria_Value . @item.CriteriaDesc


What I have tried:

what i want is when i edit the data it will rendered into the page but the dropdown will show the last value of the dropdown list ,

May be i don't explain clearly, you can ask me more ,and i will explain more detail about detail,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900