Yes, you canuse RapidSpell Web ASP.NET with API and ASP.NET Core. At the currentversion (5.3) you will need your project to depend on .NET 4 or up. v5.3does not work with pure ASP.NET Core, however it is our intention to add thatsupport in the future, so please check if a newer version has been release byvisiting https://keyoti.com/products/rapidspell/dotNetWeb/spell-checker.html Projectsthat depend on and target the full .NET framework usually have a project filelike this <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>net462</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.AspNetCore" Version="2.0.2" /> <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.3" /> <PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.ViewCompilation" Version="2.0.3" PrivateAssets="All" /> <PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.2" /> <PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.0.2" /> </ItemGroup> <ItemGroup> <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.3" /> </ItemGroup> <ItemGroup> <Reference Include="Keyoti.RapidSpellWeb.ASP.NETv4"></Reference> </ItemGroup> <ItemGroup> <Content Update="wwwroot\KeyotiJS\RapidSpell-AYT.js"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> </ItemGroup> </Project> RapidSpellWeb v5.3 has built in web service handlers using WCF and also ASMX (WebServices), however if you are using it in an environment that doesn’t supportWCF, or if you prefer to use Web API technology, you can. Theattached project (link at the bottom) includes the code you need (note it hasan updated JS script and assembly that will be officially released in v5.4). Specifically: 1. RapidSpellAPIController.cs this is the API controllerthat will handle AJAX requests from the Javascript. 2. Javascript setup to use the API controller, onthe Index.cshtml page you will see this code block that does that 3. It does not use WCF, ASMX, or ASPX <script src="~/keyotiJS/RapidSpell-AYT.js"></script> <script src="~/KeyotiJS/RapidSpell-DIALOG.js"></script> <script type='text/javascript'> rapidSpell.dialog_setUseDivDialog(true); rapidSpell.useAJAXWebService = true; rapidSpellExtension.useWCFService = false; rapidSpellExtension.useAPIController = true; rapidSpellExtension.serviceProxy.commonFolderUrl = "api"; rapidSpell.setParameterValue("default", "UserDictionaryFile", "~/ud.txt"); </script> Pleasedownload the attached project, if you have any questions integrating it in yourproject, or any problems running it, please email support@keyoti.com |