ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Get selected (checked) CheckBox values as Comma Separated String in Controller in ASP.Net MVC<p>i have found the solution</p> <p>controller</p> <pre class="brush: csharp"> public ActionResult CheckboxListTopcategoryMenu_post(List&lt;FirstCategories&gt; categoryselected) { string _searches = &#34;&#34;; foreach (FirstCategories cat in categoryselected) { _searches += cat.id.ToString() + &#34;,&#34;; } string url = string.Format(&#34;/ads/search?search={0}&#34;, _searches); return Redirect(url); }</pre> <p>&nbsp;</p> <pre class="brush: html">@model List&lt;MVCApp.Models.FirstCategories&gt; @using (@Html.BeginForm(&#34;CheckboxListTopcategoryMenu_post&#34;, &#34;Application&#34;, FormMethod.Get)) { for (int i = 0; i &lt; Model.Count(); i++) { @Html.HiddenFor(m =&gt; m[i].id) @Html.HiddenFor(m =&gt; m[i].Title) @Html.CheckBoxFor(m =&gt; m[i].isSelected) @Html.DisplayFor(m =&gt; m[i].Title) } &lt;input id=&#34;Button2&#34; type=&#34;submit&#34; class=&#34;btn red&#34; value=&#34;Search&#34; /&gt; }</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/169155/Get-selected-checked-CheckBox-values-as-Comma-Separated-String-in-Controller-in-ASPNet-MVC/https://www.aspforums.net:443/Threads/169155/Get-selected-checked-CheckBox-values-as-Comma-Separated-String-in-Controller-in-ASPNet-MVC/Wed, 15 May 2019 04:58:43 GMT