나는 다음과 같은보기가 : -.csv 파일로 모델 객체를 추출하는 방법
가@model IEnumerable<MvcApplication4.Models.customers>
@{
ViewBag.Title = "customer";
}
<h3>Avialble cusotmer</h3>
<table id ="avilalbe">
<tr>
<th>
@Html.CheckBox("ORG_NAME ", true) NAME
</th>
<th>
@Html.CheckBox("description ", true) Description
</th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.customer_NAME)
</td>
<td>
@Html.DisplayFor(modelItem => item.description)
</td>
</tr>
}
<a href=""> Extract To Excel </a>
은 어떻게 하나 (체크 박스에서 사용자의 선택에 따라 .CSV로 모델 데이터를 추출 할 수 있습니다 & 설명 열 또는 둘 중 하나만 포함해야합니다.
그래서 무엇이 문제입니까? 서버 측에서 확인란 값을 얻는 방법을 모르거나 .csv 파일을 만드는 방법을 모릅니다. –
서버에 확인란이 없어도 확인란을 기반으로 .csv 파일을 만드는 방법을 모르십니까? thnaks –