Author Archives: Rajender G
Different ways to rendering a Partial View in ASP.NET MVC
A partial view is like as user control in Web forms that is used for code re-usability. Partial views helps us to reduce code duplication. Below are four methods for rendering a…
Local Storage in Javascript
Scenario: When building more complex JavaScript applications that run in a user’s browser it’s very useful to be able to store information in the browser so that the information can…
Deferred vs Immediate Query Execution In LINQ
Deffered Query Execution: In .NET when you write a LINQ query it actually performs the querying only when the LINQ result is accessed. This phenomenon of LINQ is called deferred…
How to secure your entire MVC application with “Authorize” attribute ?
Scenario: If you would like to secure your admin pages, you would add “Authorize” attribute for all your admin controllers. However, you might get a situation like; you need to…
Create your first angular application in typescript using angular CLI
The Angular CLI is a command line interface tool that can create a project, add files, and perform a variety of ongoing development tasks such as testing, bundling, and deployment. Now, let us start…
for..of vs. for..in in TypeScript
Both and statements iterate over lists; the values iterated on are different though. returns a list of values of the numeric properties of the object being iterated. returns a list…
Find given number is Palindrome Number or Not ?
What is Palindrome Number? A Palindrome number or numeral palindrome is a number that remains the same when its digits are reversed ( 11,121, 1331,12321). using System; namespace PalindromeNumber {…
Find given number is Prime or Not? Using Recursion & Non Recursion Methods.
What is Prime Number ? A number that is divisible only by itself and 1 ( 2, 3, 5, 7, 11). using System; using ; using ; using ; using…
Naming Conventions in C#.Net
For any developer, Naming Convention is a best practice to work on any development project. Let’s discuss more about Naming convention in this article. Why Naming Conventions? Naming Convention is…
Use of AllowAnonymous Attribute in ASP.Net MVC ?
AllowAnonymous Attribute that helps you secure an entire MVC 4 Website or Controller while providing a convenient means of allowing anonymous users access to certain controller action. using ; namespace…