Skip to content

Commit 21da3e4

Browse files
committed
896949: Addressed review comments.
1 parent 39df8a4 commit 21da3e4

File tree

1 file changed

+8
-23
lines changed

1 file changed

+8
-23
lines changed

ej2-asp-core-mvc/spreadsheet/docker-deployment.md

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,16 @@ docker-compose up
5959

6060
Now the Spreadsheet server Docker instance runs on localhost with the provided port number `http://localhost:6002`. Open this link in a browser and navigate to the Spreadsheet Web API open and save service at `http://localhost:6002/api/spreadsheet/open` and `http://localhost:6002/api/spreadsheet/save`.
6161

62+
{% if page.publishingplatform == "aspnet-core" %}
63+
6264
**Step 4:** Append the URLs of the Docker instance running services to the [`openUrl`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_OpenUrl) property as `http://localhost:6002/api/spreadsheet/open` and the [`saveUrl`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_SaveUrl) property as `http://localhost:6002/api/spreadsheet/save` in the client-side Spreadsheet control. For more information on how to get started with the Spreadsheet control, refer to this [`getting started page.`](https://ej2.syncfusion.com/aspnetcore/documentation/spreadsheet/getting-started-core)
6365

66+
{% elsif page.publishingplatform == "aspnet-mvc" %}
67+
68+
**Step 4:** Append the URLs of the Docker instance running services to the [`openUrl`](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_OpenUrl) property as `http://localhost:6002/api/spreadsheet/open` and the [`saveUrl`](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_SaveUrl) property as `http://localhost:6002/api/spreadsheet/save` in the client-side Spreadsheet control. For more information on how to get started with the Spreadsheet control, refer to this [`getting started page.`](https://ej2.syncfusion.com/aspnetmvc/documentation/spreadsheet/getting-started-mvc)
69+
70+
{% endif %}
71+
6472
{% if page.publishingplatform == "aspnet-core" %}
6573

6674
{% tabs %}
@@ -80,19 +88,6 @@ Now the Spreadsheet server Docker instance runs on localhost with the provided p
8088
</script>
8189
```
8290
83-
{% endhighlight %}
84-
85-
{% highlight c# tabtitle="Opencontroller.cs" %}
86-
87-
```cs
88-
public IActionResult Open(IFormCollection openRequest)
89-
{
90-
OpenRequest open = new OpenRequest();
91-
open.File = openRequest.Files[0];
92-
return Content(Workbook.Open(open));
93-
}
94-
```
95-
9691
{% endhighlight %}
9792
{% endtabs %}
9893
@@ -113,16 +108,6 @@ public IActionResult Open(IFormCollection openRequest)
113108
</script>
114109
```
115110
{% endhighlight %}
116-
{% highlight c# tabtitle="Opencontroller.cs" %}
117-
```cs
118-
public IActionResult Open(IFormCollection openRequest)
119-
{
120-
OpenRequest open = new OpenRequest();
121-
open.File = openRequest.Files[0];
122-
return Content(Workbook.Open(open));
123-
}
124-
```
125-
{% endhighlight %}
126111
{% endtabs %}
127112
{% endif %}
128113

0 commit comments

Comments
 (0)