SEO is simplified in Blazor .Net Core 8
Dotnetguts - ASP.Net, C#, SQL, JQuery
by Unknown
4M ago
SEO is simplified in Blazor .Net Core 8.  Simply put whatever HTML you may want to use in HeadContent Tag.  Dynamic parameters can be added as shown below. @page "/" <HeadContent> <PageTitle>@title</PageTitle> <meta name="description" content="@description"> <meta name="keywords" content="@keywords" /> <meta name="author" content="@author" /> <meta property="og ..read more
Visit website
Content-Security-Policy in ASP.NET MVC
Dotnetguts - ASP.Net, C#, SQL, JQuery
by Unknown
3y ago
Few good links for securing your asp.net mvc site After applying SecurityHeaders validate Content-security-policy-for-asp-net-mvc Improving security in ASP.NET MVC using custom headers Content-Security-Policy in ASP.NET MVC Adding HTTP Headers to Improve Security ..read more
Visit website
Running Asp.net Core Web Application and Web API project on Ubuntu
Dotnetguts - ASP.Net, C#, SQL, JQuery
by Unknown
3y ago
Step 1: Install .Net Core on Ubuntu using this link Step 2: On Terminal (Cntrl + Alt + T), go to /home/ directory.  Create dir.  i.e.: mkdir coredemo  If you are new to ubuntu:  /home/ directory is place where it is good to store user specific stuff. Step 3: If you are creating Asp.net Core web application, run command:  dotnet web Asp.net web api, run command:  dotnet api Step 4: dotnet ..read more
Visit website
Efficient way of performing filtering, sorting and pagination with MongoDB C#
Dotnetguts - ASP.Net, C#, SQL, JQuery
by Unknown
3y ago
Problem: I run into issue where pagination was bringing almost all the rows from the collection and then doing pagination.  In other words it is doing in memory pagination which is inefficient.  Recommendation:  In order to do MongoDB pagination: avoid using LINQ Query. Solution: With following way you can easily and efficiently do filtering, sorting and pagination on mongoDB collection.  Below ..read more
Visit website
Getting SQL Server admin access
Dotnetguts - ASP.Net, C#, SQL, JQuery
by Unknown
3y ago
Following commands will provide you admin access for SQL Server instance. Step 1:  Run > Services.msc Step 2: Stop SQL Server (Express) Step 3: sc start mssql$sqlexpress -m -T3659 -T4010 -T4022 Step 4: sqlcmd -S [SQLInstanceName] -E Example: sqlcmd -S ComputerName\sqlexpress -E Step 5: exec SP_ADDSRVROLEMEMBER 'domainname\username', 'sysadmin' go exit Example: exec ..read more
Visit website
Installing .Net Core on Digital Ocean Hosting
Dotnetguts - ASP.Net, C#, SQL, JQuery
by Unknown
3y ago
Supporting .Net on Linux OS is the best thing Microsoft gifted to .Net Developers.  Linux hosting reduces cost, plus provide good stable support. This post will walk you through how to get started by installing .Net Core on Digital Ocean Hosting. I am assuming you already have created DigitalOcean Hosting account and are good to start by creating droplet.  Reason I have choose digital ocean is ..read more
Visit website
Install Mongodb and run as a service to start automatically for windows
Dotnetguts - ASP.Net, C#, SQL, JQuery
by Unknown
3y ago
This blog post will explain where to download mongodb, how to install and how to configure to start service automatically.   Step 1: Download mongodb, I am using community edition.  Follow step by step installation process to install mongodb. After installation a directory inside C:\Program Files is created.   Example:  In my case:  C:\Program Files\MongoDB\Server\[version] Please note ..read more
Visit website
Example of Inversion of Control and Dependency Injection
Dotnetguts - ASP.Net, C#, SQL, JQuery
by Unknown
3y ago
What is an IOC?  or What is Inversion of Control? IOC is mechanism by which we can add abstraction between dependencies to make them loosely coupled code.  Abstraction is added through interface. Now lets understand this by example. Before Implementing IOC: I have a class called "Black_And_White_Printer"  which has one print() method.  Print() method will print in black and white.  I ..read more
Visit website
Sql Server Restrict Memory usage
Dotnetguts - ASP.Net, C#, SQL, JQuery
by Unknown
3y ago
With growing of sql server database size and increase in page views of website, you might run in to memory crunch situation. Please note:  You might run into memory crunch situation for number of reasons like memory leak in code, etc, but in this article we will be focusing on only one scenario that is restricting sql server memory usage. Cause of Memory crunch situation: By default if you ..read more
Visit website
Securing request pipeline of an ASP.NET MVC 5 Application
Dotnetguts - ASP.Net, C#, SQL, JQuery
by Unknown
3y ago
Good link describing how asp.net mvc request/response pipeline works. If you are planning to make a custom security layer then this links may interest you. Asp.net Mvc 5 Life cycle: http://www.asp.net/mvc/overview/getting-started/lifecycle-of-an-aspnet-mvc-5-application Whtat is OWIN: http://www.asp.net/mvc/overview/getting-started/lifecycle-of-an-aspnet-mvc-5-application OWIN and Project ..read more
Visit website

Follow Dotnetguts - ASP.Net, C#, SQL, JQuery on FeedSpot

Continue with Google
Continue with Apple
OR