This article introduces several ways of how ASP.NET programs accomplish importing data from an Excel file and exporting data to an Excel file under B/S structure, and elaborates the detailed implementation processes of data import and client-side data export.