title: bool data sending on razor html page
body: <p>i cant send my bool data to my controller and i dont know why. i allready try out <code>@using (Html.DropdownList)</code> and other things.</p>
  <p>here is my modal and problem is in <code>LCategories[i].IsActive</code> that is the point where i cant send bool data to my controller.</p>
  <pre><code>                        
  @for (int i = 0; i &lt; Model.LCategories.Count(); i++)
  {
  &lt;div id=&quot;categoryUpdate-@Model.LCategories[i].CategoryID&quot; class=&quot;modal animated zoomInUp custo-zoomInUp&quot; tabindex=&quot;-1&quot; role=&quot;dialog&quot;
       aria-labelledby=&quot;registerModalLabel&quot; aria-hidden=&quot;true&quot;&gt;
      &lt;div class=&quot;modal-dialog&quot; role=&quot;document&quot;&gt;
          &lt;div class=&quot;modal-content&quot;&gt;
              &lt;div class=&quot;modal-header&quot; id=&quot;registerModalLabel&quot;&gt;
                  &lt;h4 class=&quot;modal-title&quot;&gt;Kategori Bilgilerini Güncelle&lt;/h4&gt;
                  &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;modal&quot; aria-hidden=&quot;true&quot;&gt;
                      &lt;svg aria-hidden=&quot;true&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;24&quot;
                           height=&quot;24&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot;
                           stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;
                           class=&quot;feather feather-x&quot;&gt;
                          &lt;line x1=&quot;18&quot; y1=&quot;6&quot; x2=&quot;6&quot; y2=&quot;18&quot;&gt;&lt;/line&gt;
                          &lt;line x1=&quot;6&quot; y1=&quot;6&quot; x2=&quot;18&quot; y2=&quot;18&quot;&gt;&lt;/line&gt;
                      &lt;/svg&gt;
                  &lt;/button&gt;
              &lt;/div&gt;
              @using (Html.BeginForm(&quot;UpdateCategory&quot;,&quot;Admin&quot;, new { id = @Model.LCategories[i].CategoryID }))
              {
                 &lt;div class=&quot;modal-body&quot;&gt;
                      &lt;input asp-for=&quot;@Model.LCategories[i].CategoryID&quot; name=&quot;CategoryID&quot; type=&quot;hidden&quot; value=&quot;@Model.LCategories[i].CategoryID&quot;&gt;
                      &lt;div class=&quot;form-row mb-4&quot;&gt;
                          &lt;div class=&quot;col&quot;&gt;
                              &lt;label asp-for=&quot;@Model.LCategories[i].CategoryName&quot;&gt;Kategori Adı&lt;/label&gt;
                              &lt;input asp-for=&quot;@Model.LCategories[i].CategoryName&quot; vtype=&quot;text&quot; class=&quot;form-control&quot;
                                placeholder=&quot;Kategori Adı&quot; name=&quot;CategoryName&quot; value=&quot;@Model.LCategories[i].CategoryName&quot; required&gt;
                          &lt;/div&gt;
                          &lt;div class=&quot;col&quot;&gt;
                              &lt;label  asp-for=&quot;@Model.LCategories[i].CategoryIsFeatured&quot;&gt;Öne Çıkarılsın Mı ?&lt;/label&gt;
                              &lt;select asp-for=&quot;@Model.LCategories[i].CategoryIsFeatured&quot; class=&quot;selectpicker&quot;
                                  data-width=&quot;100%&quot; name=&quot;CategoryIsFeatured&quot; required&gt;
                                  &lt;option selected=&quot;selected&quot; value=&quot;@Model.LCategories[i].CategoryIsFeatured&quot;&gt;@Model.LCategories[i].CategoryIsFeatured&lt;/option&gt;@*Daha sonra düzeltilecek*@
                                  &lt;option value=&quot;1&quot;&gt;Evet&lt;/option&gt;
                                  &lt;option value=&quot;0&quot;&gt;Hayır&lt;/option&gt;
                              &lt;/select&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class=&quot;form-row mb-4&quot;&gt;
                          &lt;div class=&quot;col&quot;&gt;
                              &lt;label asp-for=&quot;@Model.LCategories[i].IsActive&quot;&gt;Durumu&lt;/label&gt;
                              &lt;select asp-for=&quot;@Model.LCategories[i].IsActive&quot; class=&quot;selectpicker&quot; data-width=&quot;100%&quot; name=&quot;CategoryIsActive&quot; required&gt;
                                  &lt;option selected=&quot;selected&quot; value=&quot;@Model.LCategories[i].IsActive&quot;&gt;@Model.LCategories[i].IsActive&lt;/option&gt;
                                  &lt;option value='1'&gt;Active&lt;/option&gt;
                                  &lt;option value='0'&gt;Passive&lt;/option&gt;
                              &lt;/select&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class=&quot;form-row mb-4&quot;&gt;
                          &lt;div class=&quot;col&quot;&gt;
                              &lt;label asp-for=&quot;@Model.LCategories[i].CategoryLink&quot;&gt;Kategori Linki&lt;/label&gt;
                              &lt;div class=&quot;input-group mb-4&quot;&gt;
                                  &lt;div class=&quot;input-group-prepend&quot;&gt;
                                      &lt;span asp-validation-for=&quot;@Model.LCategories[i].CategoryLink&quot; class=&quot;input-group-text&quot;&gt;https://hbksoftware.com.tr/category/&lt;/span&gt;
                                  &lt;/div&gt;
                                  &lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;CategoryLink&quot; asp-for=&quot;@Model.LCategories[i].CategoryLink&quot; 
                                         aria-describedby=&quot;basic-addon3&quot; placeholder=&quot;Link&quot; value=&quot;@Model.LCategories[i].CategoryLink&quot;&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class=&quot;form-row mb-4&quot; style=&quot;text-align: center&quot;&gt;
                          &lt;div class=&quot;col&quot;&gt;
                              &lt;h5&gt;Varolan Kategori Fotoğrafı&lt;/h5&gt;
                              &lt;textarea&gt;@Model.LCategories[i].CategoryPhoto&quot;&lt;/textarea&gt;
                              @*&lt;img src=&quot;&quot; width=&quot;250&quot; height=&quot;300&quot;&gt;*@
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class=&quot;form-row mb-4&quot;&gt;
                          &lt;div class=&quot;col&quot;&gt;
                              &lt;label asp-for=&quot;LCategories[i].CategoryPhoto&quot;&gt;Kategori Fotoğrafı&lt;/label&gt;
                              &lt;input asp-for=&quot;LCategories[i].CategoryPhoto&quot; value=&quot;@Model.LCategories[i].CategoryPhoto&quot; type=&quot;text&quot; class=&quot;form-control&quot;
                                     placeholder=&quot;Kategori Photo&quot; name=&quot;CategoryPhoto&quot; required&gt;
                                                      @*&lt;div class=&quot;custom-file-container&quot; data-upload-id=&quot;categoryPhotoUpdate&quot;&gt;
                                  &lt;label&gt;
                                      Seçili Resmi Sil &lt;a href=&quot;javascript:void(0)&quot;
                                                          class=&quot;custom-file-container__image-clear&quot;
                                                          title=&quot;Clear Image&quot;&gt;x&lt;/a&gt;
                                  &lt;/label&gt;
                                  &lt;label class=&quot;custom-file-container__custom-file&quot;&gt;
                                      &lt;input id=&quot;categoryPhoto&quot; type=&quot;file&quot; name=&quot;categoryPhoto&quot;
                                             class=&quot;custom-file-container__custom-file__custom-file-input&quot;
                                             accept=&quot;image/*&quot;&gt;
                                      &lt;input type=&quot;hidden&quot; name=&quot;MAX_FILE_SIZE&quot; value=&quot;30485760&quot; /&gt;
                                      &lt;span class=&quot;custom-file-container__custom-file__custom-file-control&quot;&gt;&lt;/span&gt;
                                  &lt;/label&gt;
                                  &lt;div class=&quot;custom-file-container__image-preview&quot;&gt;&lt;/div&gt;*@
                          &lt;/div&gt;
                      &lt;/div&gt;
                 &lt;/div&gt;
                      &lt;button type=&quot;submit&quot; name=&quot;UpdateCategory&quot; class=&quot;btn btn-primary mt-2 mb-2 btn-block&quot;&gt;Kategoriyi Güncelle&lt;/button&gt;
              }
         &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  }
  </code></pre>
  <p>i allready check it out my controller and desing pattern,they are working so well.</p>
  <p>I edited my question,u can see the whole modal. that modal is activates on the data table.</p>