ASP.NET ページのエンティティ データ モデル テーブルからのデータがあります。ここで、ボタンをクリックしてこのデータを Excel にエクスポートする必要があります。
OLEDB を使用している場合は、ここにあるので簡単です: http://csharp.net-informations.com/excel/csharp-excel-oledb-insert.htm
問い合わせテーブルからデータを読み取る関数は次のとおりです。
var model = from i in myEntity.Inquiries
where i.User_Id == 5
orderby i.TX_Id descending
select new {
RequestID = i.TX_Id,
CustomerName = i.CustomerMaster.FirstName,
RequestDate = i.RequestDate,
Email = i.CustomerMaster.MS_Id,
DocDescription = i.Document.Description,
ProductName = i.Product.Name