All Projects → Amine-Smahi → ajxnetcore

Amine-Smahi / ajxnetcore

Licence: MIT license
Its an innovative method to turn an ASP.NET Core Application Into Single Page Application, While enhancing the Software performance both on server and client side.

Programming Languages

C#
18002 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ajxnetcore

SPA-With-Blazor
Creating a Single Page Application with Razor pages in Blazor using Entity Framework Core database first approach.
Stars: ✭ 27 (-12.9%)
Mutual labels:  spa, single-page-app, asp-net-core
eShopOnWeb
Sample ASP.NET Core 6.0 reference application, powered by Microsoft, demonstrating a layered application architecture with monolithic deployment model. Download the eBook PDF from docs folder.
Stars: ✭ 8,250 (+26512.9%)
Mutual labels:  microsoft, asp-net-core
Ajax Live Search
AJAX Live Search is a PHP search form that similar to Google Autocomplete feature displays the result as you type.
Stars: ✭ 238 (+667.74%)
Mutual labels:  jquery-plugin, ajax
Cloud-PAW-Management
Simplify PAW and SPA for the masses, unify the MS Internal, and public PAW specs, and expedite deployment to ~5min or less.
Stars: ✭ 45 (+45.16%)
Mutual labels:  microsoft, spa
Bpage
Based on bootstrap style, static page jump can also be asynchronous page processing pagination plugin
Stars: ✭ 96 (+209.68%)
Mutual labels:  jquery-plugin, ajax
Jquery Confirm
A multipurpose plugin for alert, confirm & dialog, with extended features.
Stars: ✭ 1,776 (+5629.03%)
Mutual labels:  jquery-plugin, ajax
active-directory-b2c-javascript-hellojs-singlepageapp
A single page app, implemented with an ASP.NET Web API backend, that signs up & signs in users using Azure AD B2C and calls the web API using OAuth 2.0 access tokens.
Stars: ✭ 63 (+103.23%)
Mutual labels:  microsoft, single-page-app
Infinite Scroll
📜 Automatically add next page
Stars: ✭ 7,006 (+22500%)
Mutual labels:  jquery-plugin, ajax
Active Directory B2c Dotnetcore Webapp
An ASP.NET Core web application that can sign in a user using Azure AD B2C, get an access token using MSAL.NET and call an API.
Stars: ✭ 160 (+416.13%)
Mutual labels:  microsoft, asp-net-core
Active Directory B2c Javascript Msal Singlepageapp
A single page application (SPA) calling a Web API. Authentication is done with Azure AD B2C by leveraging MSAL.js
Stars: ✭ 164 (+429.03%)
Mutual labels:  microsoft, single-page-app
react-redux-boilerplate
A React boilerplate based on Redux, React Router, styled components and Parcel
Stars: ✭ 62 (+100%)
Mutual labels:  spa, single-page-app
Tag Handler
Tag Handler is a jQuery plugin used for managing tag-type metadata.
Stars: ✭ 76 (+145.16%)
Mutual labels:  jquery-plugin, ajax
Tokenize2
Tokenize2 is a plugin which allows your users to select multiple items from a predefined list or ajax, using autocompletion as they type to find each item. You may have seen a similar type of text entry when filling in the recipients field sending messages on facebook or tags on tumblr.
Stars: ✭ 74 (+138.71%)
Mutual labels:  jquery-plugin, ajax
Bs grid
Bootstrap Datagrid
Stars: ✭ 184 (+493.55%)
Mutual labels:  jquery-plugin, ajax
Uploader
A lightweight and very configurable jQuery plugin for file uploading using ajax(a sync); includes support for queues, progress tracking and drag and drop.
Stars: ✭ 1,042 (+3261.29%)
Mutual labels:  jquery-plugin, ajax
csharp
📚 Recursos para aprender C#
Stars: ✭ 37 (+19.35%)
Mutual labels:  microsoft, asp-net-core
elm-spa
Pure Elm library to easily build Single Page Applications
Stars: ✭ 37 (+19.35%)
Mutual labels:  spa, single-page-app
Form
jQuery Form Plugin
Stars: ✭ 5,122 (+16422.58%)
Mutual labels:  jquery-plugin, ajax
Push State
Turn static web sites into dynamic web apps.
Stars: ✭ 16 (-48.39%)
Mutual labels:  jquery-plugin, ajax
Awesome Blazor
Resources for Blazor, a .NET web framework using C#/Razor and HTML that runs in the browser with WebAssembly.
Stars: ✭ 6,063 (+19458.06%)
Mutual labels:  microsoft, asp-net-core

What is Ajxnetcore

ajxnetcore

Its an innovative method to turn an ASP.NET Core Application Into Single Page Application, The goal is to reduce developer's effort while working on Creating an SPA and enhancing the Software performance both on server and client side.

Why and How it works

Single page applications are more capable of decreasing load time of pages and the amount of data transfer from server to client. Why ? There are several pain points while working with Javascript framework like AngularJs, React, VueJs, Knockout, meteor e.t.c. in a ASP.NET Core MVC application in order to create Single-Page Application.

Few Pain Points Are:

  • Need to specify routing for each request.
  • Need to modify Server side technology according to Javascript framework.
  • Only possible to debug on run time.
  • Hard-coded data-binding caused too many error.
  • Increase the complexity.

So what will i get

  • No need to learn any javascript framework.
  • No need to write much Jquery code to make Single Page Application.
  • No need to write Jquery ajax code because the plugin has ajax function specified which will be called automatically as a common function.
  • Use default server side routing.

Note: developer can also use other JavaScript framework(angularjs, knockout, react e.t.c.) side by side.

How to setup

  1. Download the js file from here and put it in the js directory under the wwwroot folder

  2. Replace the "_ViewStart.cshtml" file with

     @{
       if (Context.Request.Headers["X-Requested-With"] == "XMLHttpRequest")
       {
           Context.Response.Headers["Location"] = Microsoft.AspNetCore.Http.Extensions.UriHelper.GetDisplayUrl(Context.Request);
           Context.Response.Headers["Cache-Control"] = "no-store";
       }
       else
       {
           Layout = "_Layout";
       }
     }
    
  3. Add the reference of the ajxnetcore.js file in the "_layout.cshtml" file

     <script src="~/js/ajxnetcore.js"></script>
    
  4. Put the RenderBody() inside a div with an id like this

     <div id="myid">@RenderBody()</div>  
    
  5. Finnaly add the following lines just befor the closing body tag

     <script>
         $(function() {
             $('#myid').ajxnetcore();
         })
     </script>
    

Screenshot

You can test this project by downloading the ajxnetcore.demo project

ajxnetcore spa .net core asp

License

The project is under MIT License

        Copyright (c) 2017 Amine Smahi

        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:

        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.

        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].