Programmer Tunnel

  • Facebook
  • Twitter
  • Google+
  • LinkedIn

Category: ASP.NET MVC

ASP.NET MVC

Convert Object to JSON .NET

Just install Newtonsoft and use the below code Then you can use this from controller It will return data like below

By reza, 3 years ago October 8, 2020
ASP.NET MVC

Add IP Address Filter on Controller or Action in ASP.NET Core

First of all create a action filter like below: <pre> At appsettings.json include your whitelist IPAddress: Inside the ConfirueService method at Startup.cs add below code to provide whitelisted IPAddress: Finally add the filter where you required. Here I apply an action Get.

By reza, 3 years ago August 26, 2020
ASP.NET MVC

Use Data Table Plugin to Represent Data by Custom Table View

You can easily fetch data from the server and show them in UI by simple a few lines of code. At the html file, we just need to add a table with id. Also, you need to add the reference of jQuery and Data Table plugin at html file. Like Read more…

By reza, 4 years ago May 1, 2019
ASP.NET MVC

Pass List from Razor View to jQuery Function

You can’t easily pass the collection from razor view to a jquery function. To do that you need to encode the list, then store the value as raw html usingĀ  @Html.Raw(). And pass the collection to the function as a string. From inside the jquery function, you need to parse Read more…

By reza, 4 years ago May 1, 2019
Recent Posts
  • Create Local Tunnel to Test Development at localhost:port
  • Reload all Tabs on Certain Condition
  • AWS docker build from Stephen Grider (Udemy)
  • Convert Object to JSON .NET
  • Create Your Own Docker Image
Recent Comments
  • reza on Reset Auto-generated Primary Key(RESEED) at MS SQL Server
  • Mikhael Loo on Reset Auto-generated Primary Key(RESEED) at MS SQL Server
  • yodhraj on Reset Auto-generated Primary Key(RESEED) at MS SQL Server
  • dev on Text Overflow Animation when Exceed the height using CSS
  • Akash on Create Node Server with Express from Scratch
Archives
  • January 2021
  • October 2020
  • August 2020
  • June 2020
  • April 2020
  • March 2020
  • May 2019
  • April 2019
  • February 2018
  • January 2018
Categories
  • Angular
  • ASP.NET MVC
  • Coding
  • CSS HTML JavaScript
  • Docker
  • LeetCode
  • Mean Stack(step by step)
  • MSSQL
  • MySQL
  • Uncategorized
  • Facebook
  • Twitter
  • Google+
  • LinkedIn
Hestia | Powered by WordPress