Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 0 additions & 6 deletions ej2-asp-core-mvc/EJ2_ASP.MVC/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ publishingplatform: ##Platform_Name##
documentation: ug
---

---
title: "Introduction"
component: "Common"
description: ""
---

# Syncfusion ASP.NET MVC UI (Essential JS 2)

The Syncfusion ASP.NET MVC UI (Essential JS 2) is a modern enterprise UI toolkit that has been built from the ground up to be lightweight, responsive, modular and touch friendly. It also available in other frameworks such as JavaScript and Angular, React.
Expand Down
6 changes: 0 additions & 6 deletions ej2-asp-core-mvc/EJ2_ASP.MVC/system-requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ publishingplatform: ##Platform_Name##
documentation: ug
---

---
title: "Right to Left"
component: "Common"
description: "Learn about the right-to-left (RTL) behavior of Syncfusion web components in the web application."
---

# System Requirements

## Syncfusion ASP.NET MVC UI (Essential JS 2)
Expand Down
167 changes: 167 additions & 0 deletions ej2-asp-core-mvc/barcode/EJ2_ASP.MVC/getting-started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
---
layout: post
title: Welcome to Syncfusion Essential ##Platform_Name##
description: Learn here all about Getting Started of Syncfusion Essential ##Platform_Name## widgets based on HTML5 and jQuery.
platform: ej2-asp-core-mvc
control: Getting Started
publishingplatform: ##Platform_Name##
documentation: ug
---


# Getting Started with ASP.NET MVC

> Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, you also have to include a license key in your projects. Please refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/license-key) to know about registering Syncfusion license key in your ASP.NET Core application to use our components.

## Prerequisites

To get start with ASP.NET MVC application, need to ensure the following software to be installed on the machine.

1. .Net Framework 4.5 and above.
2. ASP.NET MVC 4 or ASP.NET MVC 5
3. Visual Studio

## Preparing ASP.NET MVC application

The following steps to create ASP.NET MVC Application.

**Step 1:** Create ASP.NET MVC Application with default template project in Visual Studio.

![Default Template](./images/default-template.png)

**Step 2:** Once your project created. We need to add Syncfusion EJ2 package into your application by using `NuGet Package Manager`.

Open the `NuGet` package manager.

![Solution Explorer](./images/solution-explorer-mvc.png)

Install the **Syncfusion.EJ2.MVC4** package to the application.

![Nuget Demo](./images/nuget-demo.png)

After installation complete, this will be included in the project. You can refer it from the Project Assembly Reference.

> We need to install **NewtonSoft.JSON** as a dependency, since **Syncfusion.EJ2** dependent to `NewtonSoft.JSON` package.

**Step 3:** Add `Syncfusion.EJ2` namespace reference in `Web.config`

```cs
<namespaces>
<add namespace="Syncfusion.EJ2"/>
</namespaces>

```

```cs
<system.web>
<compilation>
<assemblies>
<add assembly="Syncfusion.EJ2" Version=15.3400.0.27, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
</system.web>
```

**Step 4:** Add client side resource through [`CDN`](http://ej2.syncfusion.com/15.4.23/documentation/base/deployment.html?lang=typescript#cdn) or local [`package`](https://www.npmjs.com/package/@syncfusion/ej2) in the layout page `_Layout.cshtml`.

```html
<head>
@* Syncfusion Essential JS 2 Styles *@
<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/material.css" />

@* Syncfusion Essential JS 2 Scripts *@
<script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js"></script>
</head>
```

**Step 5:** Adding Script Manager in layout page `_Layout.cshtml`.

```cs
@Html.EJS().ScriptManager()
```

## Add Barcode to the project

Create and add a `barcode` (JSON data) with specific size, value .

{% if page.publishingplatform == "aspnet-core" %}

{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
{% include code-snippet/barcode/getting-started/barcode/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Barcode.cs" %}
{% include code-snippet/barcode/getting-started/barcode/barcode.cs %}
{% endhighlight %}
{% endtabs %}

{% elsif page.publishingplatform == "aspnet-mvc" %}

{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
{% include code-snippet/barcode/getting-started/barcode/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Barcode.cs" %}
{% include code-snippet/barcode/getting-started/barcode/barcode.cs %}
{% endhighlight %}
{% endtabs %}
{% endif %}



## Adding QR Generator control

You can add the QR code in our barcode generator component.

{% if page.publishingplatform == "aspnet-core" %}

{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
{% include code-snippet/barcode/getting-started/qrcode/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Qrcode.cs" %}
{% include code-snippet/barcode/getting-started/qrcode/qrcode.cs %}
{% endhighlight %}
{% endtabs %}

{% elsif page.publishingplatform == "aspnet-mvc" %}

{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
{% include code-snippet/barcode/getting-started/qrcode/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Qrcode.cs" %}
{% include code-snippet/barcode/getting-started/qrcode/qrcode.cs %}
{% endhighlight %}
{% endtabs %}
{% endif %}



## Adding Datamatrix Generator control

You can add the datamatrix code in our barcode generator component.

{% if page.publishingplatform == "aspnet-core" %}

{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
{% include code-snippet/barcode/getting-started/datamatrix/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Datamatrix.cs" %}
{% include code-snippet/barcode/getting-started/datamatrix/datamatrix.cs %}
{% endhighlight %}
{% endtabs %}

{% elsif page.publishingplatform == "aspnet-mvc" %}

{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
{% include code-snippet/barcode/getting-started/datamatrix/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Datamatrix.cs" %}
{% include code-snippet/barcode/getting-started/datamatrix/datamatrix.cs %}
{% endhighlight %}
{% endtabs %}
{% endif %}

183 changes: 183 additions & 0 deletions ej2-asp-core-mvc/barcode/EJ2_ASP.NETCORE/getting-started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
---
layout: post
title: Welcome to Syncfusion Essential ##Platform_Name##
description: Learn here all about Getting Started of Syncfusion Essential ##Platform_Name## widgets based on HTML5 and jQuery.
platform: ej2-asp-core-mvc
control: Getting Started
publishingplatform: ##Platform_Name##
documentation: ug
---


# Getting Started with ASP.NET Core

> Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, you also have to include a license key in your projects. Please refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/license-key) to know about registering Syncfusion license key in your ASP.NET Core application to use our components.

## Prerequisites

To get start with ASP.NET Core application, need to ensure the following software to be installed on the machine.
* Visual Studio 2017
* DotNet Core 2.0

## Setup ASP.NET Core application with Essential JS 2 for ASP.NET Core

The following steps to create ASP.NET Core Application.

**Step 1:** Create ASP.NET Core Web Application with default template project in Visual Studio 2017.

![Alt text](./images/default-template.png)

**Step 2:** Once your project created. We need to add Syncfusion EJ2 package into your application by using Nugget Package Manager.

Open the `nuGet` package manager.

![Alt text](./images/solution-explorer-core.png)

Install the **Syncfusion.EJ2** package to the application

![Alt text](./images/nuget-demo.png)

After Installation complete this will included in the project. You can refer it from the Project Assembly Reference.

> We need to install **NewtonSoft.JSON** as dependency since it **Syncfusion.EJ2** dependent to NewtonSoft.JSON package.

**Step 3:** Open the **Views/_ViewImports.cshtml** to import Syncfusion.EJ2 package.

```cs
@addTagHelper *, Syncfusion.EJ2
```

**Step 4:** Add client side resource through [`CDN`](http://ej2.syncfusion.com/15.4.23/documentation/base/deployment.html?lang=typescript#cdn) or local [`package`](https://www.npmjs.com/package/@syncfusion/ej2) in the layout page **Views/Shared/_Layout.cshtml.**

```html
<head>
@* Syncfusion Essential JS 2 Styles *@
<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/material.css" />

@* Syncfusion Essential JS 2 Scripts *@
<script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js"></script>
</head>
```

**Step 5:** Adding Script Manager in layout page **Views/Shared/_Layout.cshtml.**

```cs
<body>
@RenderBody()
@RenderSection("Scripts", required: false)
<ejs-scripts></ejs-scripts>
</body>
```

**Step 6:** Add the below code to your Index.cshtml view page which is present under Views/Home folder, to initialize the barcode.

{% if page.publishingplatform == "aspnet-core" %}

{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
{% include code-snippet/barcode/getting-start/barcode/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Barcode.cs" %}
{% include code-snippet/barcode/getting-start/barcode/barcode.cs %}
{% endhighlight %}
{% endtabs %}

{% elsif page.publishingplatform == "aspnet-mvc" %}

{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
{% include code-snippet/barcode/getting-start/barcode/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Barcode.cs" %}
{% include code-snippet/barcode/getting-start/barcode/barcode.cs %}
{% endhighlight %}
{% endtabs %}
{% endif %}



## Add Barcode to the project

Create and add a `barcode` (JSON data) with specific size, value .

{% if page.publishingplatform == "aspnet-core" %}

{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
{% include code-snippet/barcode/getting-started/barcode/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Barcode.cs" %}
{% include code-snippet/barcode/getting-started/barcode/barcode.cs %}
{% endhighlight %}
{% endtabs %}

{% elsif page.publishingplatform == "aspnet-mvc" %}

{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
{% include code-snippet/barcode/getting-started/barcode/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Barcode.cs" %}
{% include code-snippet/barcode/getting-started/barcode/barcode.cs %}
{% endhighlight %}
{% endtabs %}
{% endif %}



## Adding QR Generator control

You can add the QR code in our barcode generator component.

{% if page.publishingplatform == "aspnet-core" %}

{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
{% include code-snippet/barcode/getting-started/qrcode/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Qrcode.cs" %}
{% include code-snippet/barcode/getting-started/qrcode/qrcode.cs %}
{% endhighlight %}
{% endtabs %}

{% elsif page.publishingplatform == "aspnet-mvc" %}

{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
{% include code-snippet/barcode/getting-started/qrcode/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Qrcode.cs" %}
{% include code-snippet/barcode/getting-started/qrcode/qrcode.cs %}
{% endhighlight %}
{% endtabs %}
{% endif %}



## Adding Datamatrix Generator control

You can add the datamatrix code in our barcode generator component.

{% if page.publishingplatform == "aspnet-core" %}

{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
{% include code-snippet/barcode/getting-started/datamatrix/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Datamatrix.cs" %}
{% include code-snippet/barcode/getting-started/datamatrix/datamatrix.cs %}
{% endhighlight %}
{% endtabs %}

{% elsif page.publishingplatform == "aspnet-mvc" %}

{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
{% include code-snippet/barcode/getting-started/datamatrix/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Datamatrix.cs" %}
{% include code-snippet/barcode/getting-started/datamatrix/datamatrix.cs %}
{% endhighlight %}
{% endtabs %}
{% endif %}

Loading