protected Page_Load ( object sender, EventArgs e ) : void | ||
sender | object | |
e | EventArgs | |
return | void |
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
}
}
}