Tech Blog

Top 100 ASP.NET Interview Questions and Answers

Top 100 ASP.NET Interview Questions and Answers

Question1: What is the Page Life Cycle of ASP.NET? PreInit: Raised after the Asp.net Page Object will be created. Check the IsPostback Property to determine whether this page is the first time the page is being processed.The IsCallback and IsCrosspagepostback properties have also been set at this time. Create or re-create dynamic controls .Set the Master page Dynamically Set the theme property Dynamically 5 Read […]

Read More Leave comment

Top 100 SqlServer Interview Questions and Answers

Top 100 SqlServer Interview Questions and Answers

Questio1: What is trigger? Triggers are the special type of stored procedure that automatically executes when a DDL or DML statement associated with the trigger is executed. DML Triggers are used to evaluate data after data manipulation using DML statements. We have two types of DML triggers. Question2: What is Clustered & Non-Clustered Index? Clustered Index: Clustered index physically rearrange the data that users insert in […]

Read More Leave comment

Top 40 C# Interview Questions and Answers

Top 40 C# Interview Questions and Answers

Question1:Explain the types of comments in C#? Below are the types of comments in C# – Single Line Comment Eg : // Multiline Comments Eg: /* */ XML Comments Eg : /// Question2:What’s A Satellite Assembly? When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized assemblies that modify the core […]

Read More Leave comment

ASP.NET Core: The MVC Request Life Cycle

ASP.NET Core: The MVC Request Life Cycle

Application start and hit the main() method inside the Program.cs. public class Program { public static void Main(string[] args) { var host = new WebHostBuilder() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .UseIISIntegration() .UseStartup<Startup>() .Build(); host.Run(); } } WebHostBuilder The WebHostBuilder class is the helper class to create and configure a host for a web application. UseKestrel() The UseKestrel() method is an extension method which specifies Kestrel as an internal […]

Read More Leave comment

How to create Chrome Add-on

How to create Chrome Add-on

Extensions allow you to add functionality to Chrome without diving deeply into native code. You can create new extensions for Chrome with those core technologies that you’re already familiar with from web development: HTML, CSS, and JavaScript. DownLoad the add-on Step1 The very first thing we’ll need to create is a manifest file named manifest.json. This manifest is nothing more than a metadata file in […]

Read More Leave comment

Tutorial – 25 – Routing & Navigation

Tutorial – 25 – Routing & Navigation

The Angular Router enables navigation from one view to the next as users perform application tasks. Routes & RouterModule import {Routes, RouterModule} from “@angular/router”; Route Configuration A routed Angular application has one singleton instance of the Router service. When the browser’s URL changes, that router looks for a corresponding Route from which it can determine the component to display. const routes: Routes = [ { […]

Read More 1 Comment

Tutorial – 24 – HttpClient

Tutorial – 24 – HttpClient

The HttpClient in @angular/common/http offers a simplified client HTTP API for Angular applications that rests on the XMLHttpRequest interface exposed by browsers. import { HttpClientModule } from ‘@angular/common/http’; The http client is a service that you can inject into your classes in Angular, like so: import { Http, Response, RequestOptions, Headers } from ‘@angular/http’; class MyClass { constructor(private http: Http) { } } HTTP Verbs In the HTTP protocol […]

Read More Leave comment

Tutorial – 23 – Dependency Injection

Tutorial – 23 – Dependency Injection

Dependency Injection Dependency Injection is a coding pattern in which a component takes the instances of objects it needs which is called dependencies from an external source rather than creating them itself. In Angular, services are Singleton. It internally implements the Service Locator Pattern. This means each service register itself under one container as a single instance. Angular provides a built in Injector which acts as […]

Read More Leave comment

Tutorial – 22 – Template Driven Forms

Tutorial – 22 – Template Driven Forms

Basic setup index.html <!doctype html> <html lang=”en”> <head> <meta charset=”utf-8″> <title>Demo</title> <base href=”/”> <meta name=”viewport”content=”width=device-width, initial-scale=1″> <link rel=”icon”type=”image/x-icon”href=”favicon.ico”> <!– Latest compiled and minified CSS –> <link rel=”stylesheet” href=”./css/bootstrap.min.css”> <!– jQuery library –> <script src=”./jquery/3.3.1/jquery.min.js”></script> <!– Latest compiled JavaScript –> <script src=”./bootstrap/3.3.7/js/bootstrap.min.js”></script> </head> <body> <app-root></app-root> </body> </html> Form setup app.component.html <div class=”container”> <h1 class=”well”>Registration Form</h1> <div class=”col-lg-12 well”> <div class=”row”> <form #f=”ngForm”> <div class=”col-sm-12″> <div class=”row”> […]

Read More Leave comment

Tutorial – 21 – Model Driven Form Validation

Tutorial – 21 – Model Driven Form Validation

Basic setup index.html <!doctype html> <html lang=”en”> <head> <metacharset=”utf-8″> <title>Demo</title> <basehref=”/”> <metaname=”viewport”content=”width=device-width, initial-scale=1″> <linkrel=”icon”type=”image/x-icon”href=”favicon.ico”> <!– Latest compiled and minified CSS –> <link rel=”stylesheet” href=”./css/bootstrap.min.css”> <!– jQuery library –> <script src=”./jquery/3.3.1/jquery.min.js”></script> <!– Latest compiled JavaScript –> <script src=”./bootstrap/3.3.7/js/bootstrap.min.js”></script> </head> <body> <app-root></app-root> </body> </html> Form setup app.component.html <div class=”container”> <h1 class=”well”>Registration Form</h1> <div class=”col-lg-12 well”> <div class=”row”> <form [formGroup]=”myform”> <div class=”col-sm-12″> <div class=”row”> <div class=”col-sm-6 form-group”> <label>First […]

Read More Leave comment
Visitors
Page Hits: 67275
Unique Visitors :
17880
Made With By Keshab