Create a new excel file and write two lines of data in it, as shown below:
2.
Open visual studio and create a new web Forms application, as shown below:
3.
In default.aspx, add a button control and a gridview control. The button is used to connect to excel to obtain data when clicking.