Author - Amr Saafan

Exception Handling in Angular 10

I am using Angular 10 and when I click to open Persons page I get “Nulljector error” and redirect me to the home page .NullInjectorError: No provider for PersonServiceProxy!<a ng-reflect-router-link="/app/main/phonebook" href="/app/main/phonebook">phonebook </a>The solution :Add your ServiceProxy to providers in "\angular\src\shared\service-proxies\service-proxy.module.ts".Open service-proxy.module.ts fileIn @NgModule > providers > Add this Line “ApiServiceProxies.PersonServiceProxy”...

10 deadly sins of programming

Here are a few deadly sins that you should avoid while programming, they are not in a particular order:Assuming your code works.Code before you think.Coding without using a version control system.No code comments.No exception handling.Not using meaningful names for variables, methods, classes, etc.Overengineering.Overuse of inheritance and overriding.Reinventing the wheel.Untraceable Changes.If...

Subdomain Mapping in ASP.NET Boilerplate

In AbpTenants table in the database. You can add your custom properties to Tenant class.AbpTenant class defines some basic properties, the most important properties are:TenancyName: This is a unique name of a tenant in the application. It should not be changed normally. It can be used to allocate subdomains to tenants like...

How to use Active Directory Membership Provider in ASP.NET

The ASP.NET membership feature provides secure credential storage for application users.We will use The following:Web page named Login.aspx and another web page named CreateUser.aspxLogin Control.Create User Wizard Control.Steps:1- Configure Forms Authentication in Web.config file.To configure forms authentication, set the <authentication> element's mode attribute to "Forms" and then configure your application's...

How to create AutoComplete Textbox in Windows Forms Application using C#.NET

I'll show you how to create AutoComplete Textbox in a Windows Forms ApplicationThis time we're going to get the data from MS Access Databaseso let's get starting!1- Create Windows Forms Application.2- Add Textbox Control.3- Copy the below code into your form.AutoCompleteStringCollection stringCollection = new AutoCompleteStringCollection();private void AutoCompleteTextBox() { OleDbConnection aConnection...

How to use SQL Membership Provider in ASP.NET

The ASP.NET membership feature provides secure credential storage for application users.We will use the following:Web Page Named Login.aspx and another Web Page named CreateUser.aspxLogin Control.Create User Wizard Control.Steps:1- Configure Forms Authentication in Web.config FileTo configure forms authentication, set the <authentication> element's mode attribute to "Forms" and then configure your application's...

How to connect to Team Foundation Server (TFS) using C#.NET

I will show you how to connect to Team Foundation Server (TFS) and add work item via code.First you must install TFS SDK, you can download Team Foundation Server SDK from the below link:http://www.microsoft.com/downloads/details.aspx?FamilyID=7e0fdd66-698a-4e6a-b373-bd0642847ab7&DisplayLang=enSteps:1- Create windows or web Application2- Add References for :Microsoft.TeamFoundation.ClientMicrosoft.TeamFoundation.WorkItemTracking.Client3- The below code will help you to...