Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ Now, add the Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET Core Sprea
{% highlight cshtml tabtitle="CSHTML" %}
{% include code-snippet/spreadsheet/asp-net-core/getting-started-core/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="OpenController.cs" %}
{% include code-snippet/spreadsheet/asp-net-core/getting-started-core/spreadsheet.cs %}
{% endhighlight %}
{% endtabs %}

Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to run the app. Then, the Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET Core Spreadsheet control will be rendered in the default web browser.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
public IActionResult Index()
{
return View();
}
}
public IActionResult Open(IFormCollection openRequest)
{
OpenRequest open = new OpenRequest();
open.File = openRequest.Files[0];
return Content(Workbook.Open(open));
}

public IActionResult Save(SaveSettings saveSettings)
{
return Workbook.Save(saveSettings);
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<ejs-spreadsheet id="spreadsheet">
<ejs-spreadsheet id="spreadsheet" openUrl="Home/Open" saveUrl="Home/Save">

</ejs-spreadsheet>