Pros-Cons of URL Mapping in ASP.Net

Filed in ASP.NETTags: , , , ,

The concept of URL mapping was introduced for the very first time in ASP.Net version 2.0 and ever since, it has been in existence. While most of the Web-developers who develop their projects on ASP.net prefer going for URL Mapping whereas there are developers who don’t like to go with the concept of URL mapping. In this article, we will discuss about the Pros and Cons of URL mapping in ASP.net but before moving further, I would give a small definition to newbies of ASP.net.

Read the rest of this entry »

How to Generate Random Password in ASP.NET

Filed in ASP.NETTags: , , , , ,

While ASP.NET is known for providing users/developers with inbuilt functions and methods for creating Login forms etc., yet there are sometimes when we need to generate a random password string for every new user created. Especially in applications like Online Examinations System where the admin generates a random default password for every new user created. We can make use of inbuilt random class for it and get the things done easily. So here we are discussing the best way to do so along with a step by step instruction with code:

Read the rest of this entry »

Microsoft .Net Framework Architecture

Filed in ASP.NETTags: , , , ,

Microsoft .Net Framework is very useful as it provides support for developing both Windows applications and Web based applications. Microsoft has provided .Net Framework with an exceptional feature which automatically converts the datatypes as per the requirement of framework (if the language is supported). You can also design and run your own language inside the .Net framework if it is designed as per the assembly and directives supported by it. At present, the .Net framework 4.5 supports more than 25 languages with the most common being C++ , VB , C# ,F#, J# and many more. If you want to know as to how the framework can support more than one language, then you must have some information about the architecture of .Net framework.

Read the rest of this entry »

Delegates in C#

Filed in ASP.NETTags: , , , ,

Delegates in .NET can be considered as address to methods. This can be considered to be equivalent to Function Pointers in C++. However, there are some difference like delegates are type-safe and a delegate class can hold reference to multiple methods.

Read the rest of this entry »

Difference between TryCast and DirectCast

Filed in ASP.NETTags: , , , ,

When we program in VB.net, we sometimes get into a situation where we have more than one solution for doing a given problem. Sometimes, we code something as a solution and then find a better version of the same on Internet or some other resource. Such situations are sometimes funny while they are irritating most of the times. For example, take casting in VB.Net.

Read the rest of this entry »

Introduction to Custom Attributes in C# .NET

Filed in ASP.NETTags: , , , ,

In order to understand how to write your own custom attributes, it is useful to know what the complier does when it encounters an element in the code which has been presented as a custom attribute applied to it.
Read the rest of this entry »