Using Static Files in Asp.net Core

To use static file, you must Add Microsoft.AspNetCore.StaticFiles to the request pipeline of asp.net core Basic information configurationThe following code shows how to configure the static file Middleware in startup. Still dot net core routing not allowed you to access static folder content untill you configure your folder/directory path. following below link will help you […]

Centering Child Div In Parent Div

Child Div can be centered in many but here two easiest ways are mentioned-  Centering an Absolute Element Horizontally Centering an element horizontally in the viewport or browser window. To get started, let’s bust out a simple div and give it some basic styling. Parent Div style:       position:relative;height:300px;width:500px;  Child Div style: position:absolute;left:0px;right:0px; width:100px;height:100px;margin:auto Centering Absolute […]

Built in SQL Function ROW_NUMBER

Today our discussion matter on built in SQL function ROW_NUMBER(). This function simply generates row number for each row in the result. e.g. Suppose we have a table Employees. SELECT EmployeeId, EmployeeName, Salary FROM Employees EmployeeId EmployeeName ————————– P0001 Emp1 P0002 Emp2 P0003 Emp3 P0004 Emp4 P0005 Emp5 ROW_NUMBER() when assign sequence number to rows […]

SoapAction Customization for WCF

SOAP is a standards-based web services technology that allows providers to abstract data and transport implementations over the web. It relies on Extensible Markup Language (XML) for its message format, and usually relies on other Application Layer protocols, most notably Hypertext Transfer Protocol (HTTP) and Simple Mail Transfer Protocol (SMTP), for message negotiation and transmission. […]