To develop web application with Angular 2 and ASP .NET Core API we can use a builtin template that’s provide from the dotnet CLI (command line interface) by typing dotnet new angular but before you do that you need to make a new folder where you’ll put all your project files. Don’t forget to runContinue reading “Angular 2 application with asp.net core API”
Author Archives: Gadael Sedubun
c#: Sorting List of Complex Type or an Object using IComparable
To do sorting with List<T> of your own object type you need to implement IComparable<T> interface into the class itself. So when you have a List of the object you can easily call listOfObject.Sort() to sort the content of that list. For example: imagine you have a Class Schedule for work schedule and that classContinue reading “c#: Sorting List of Complex Type or an Object using IComparable”
Hasil StackOverflow Developer Survey 2017
Melihat hasil Developer Survey tahun 2017, banyak hal yang bias ditarik kesimpulannya. Misal, Sebagian besar peran dari responden adalah sebagai web developer, meskipun dijelaskan bahwa banyak juga dari mereka yang membuat aplikasi desktop dan mobile. Bahasa pemrograman yang paling populer adalah : JavaScript SQL Java C# dst. Sepertinya banyak developer jaman sekarang yang bekerja membuat WebContinue reading “Hasil StackOverflow Developer Survey 2017”
IIS: improve websites security by adding http headers
One way to improve asp.net MVC website security is to add http custom headers on IIS. To do that you need to open IIS by typing inetmgr on Run, then open the particular website on the Connections pane on the left side and click on Http Response Headers inside the website’s Home pane. After thatContinue reading “IIS: improve websites security by adding http headers”
IIS Server: Acces To Path is Denied when export xls file
When trying to create excel files while exporting and you need to save it on the folder inside a web server. Often times you get an error like this : means that your websites application pool doesn’t have the rights to Read or Write into the folder that the website’s located. To fix it, you needContinue reading “IIS Server: Acces To Path is Denied when export xls file”
Install Aplikasi YouTube-dl-gui
Pernah mencoba download video YouTube di laptop anda? Banyak orang yang menggunakan aplikasi Internet Download Manager untuk mendownload video dari youtube, buat mereka yang menggunakan OS Windows 10. Meskipun banyak dari mereka yang tidak membeli license untuk aplikasi tersebut, dengan melakukan pencarian sederhana “idm crack” di google muncul-lah website-website yang menyediakan crack aplikasi IDM. SangatContinue reading “Install Aplikasi YouTube-dl-gui”
asp.net core MVC login menggunakan custom database. Part-3
Melengkapi asp.net Core MVC tutorial series: part-1, part-2 dan tulisan ini sebagai part-3. EntityFrameworkCore Untuk mengakses database, asp.net core secara default menggunakan EntityFrameworkCore dan Sql Server. EntityFrameworkCore adalah data access technology, ini adalah versi ringan dan cross platform dari EntityFramework. Ada dua cara untuk menggunakan entityframework: Code first Database first Tutorial ini menggunakan code first,Continue reading “asp.net core MVC login menggunakan custom database. Part-3”
asp.net core MVC login menggunakan custom database. Part-2
HttpPost, HttpGet dan Authorize attributes. Melanjutkan artikel part-1. Untuk meng-handle autentikasi dan input dari login form yang dikirim browser dengan metod POST, harus menggunakan HttpPost attribute pada method/action yang ada di SecurityController. Untuk itu tambahkan method baru yaitu Login dengan parameter type LoginViewModel. Saya akan menjelaskan gambar diatas, attribute yang dipakai adalah [HttpPost], [AllowAnonymous] danContinue reading “asp.net core MVC login menggunakan custom database. Part-2”
asp.net core MVC login menggunakan custom database. Part-1
Aspnet core menyediakan template bawaan yang sudah lengkap dimana terdapat konfigurasi dasar MVC dan beberapa setting route untuk mapping request yang datang dari user dan menyalurkannya ke controller. Melanjutkan tulisan sebelumnya belajar aspnet core MVC. Pada tulisan ini saya akan jelaskan bagaimana menggunakan aspnet core MVC cookie authentication dengan memanfaatkan database yang sudah ada. PadaContinue reading “asp.net core MVC login menggunakan custom database. Part-1”
Belajar .NET Core MVC di Linux.
Install .net core sdk dan cli. belajar .NET Core MVC, pertama lakukan instalasi .NET Core SDK dengan tutorial ini. tergantung operating system yang dipakai, .net core adalah open source .net yang bisa berjalan di windows,linux dan mac os. Karena cross platform maka .net core menjadi salah satu platform yang terkenal beberapa tahun terakhir ini, meskipunContinue reading “Belajar .NET Core MVC di Linux.”