ASP.NET core exampleThis example shows how to:
- Set up configuration options to add elements to the 51Degrees Pipeline. {"PipelineOptions": {"Elements": [{"BuilderName": "math"},{"BuilderName": "JavaScriptBundlerElement"}],"ClientSideEnabled": true}}
- Configure client-side code to be run by enabling it in the Web.config.
- Use the results contained in the
Request.Browser
instance to display something on a page view.public class HomeController : Controller{...public IActionResult Index(){ViewData["Message"] =Request.Browser["math.operation"] + " = " + Request.Browser["math.result"];return View();}...