protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
// ExStart:ShowFormulaFeature
// Gets the web application's path.
string path = (this.Master as Site).GetDataDir();
// Clear the sheets
GridWeb1.WorkSheets.Clear();
// Load the file
GridWeb1.ImportExcelFile(path + "\\Articles\\source.xlsx");
// ExEnd:ShowFormulaFeature
}
}
}