.NET

Posts filed under .NET

Namespace in C#.Net

Filed in ASP.NET, C#Tags: , , , , , , ,

Definition: As we know that every piece of code in .Net exists inside a .Net Type. Generally we put the code inside the class. The namespace is a collection of these classes or types. Every type exists inside a namespace. Namespaces can organize all the different types in the class library. Without namespace, these types would be grouped into a single long and messy list. In .Net the System namespace is stocked with several hundred classes. Also many namespaces are exists inside the System namespace. There are many namespaces that are must while developing a .Net application.

Read the rest of this entry »

How to use SQL Commands in C#.NET

Filed in ASP.NET, SQLTags: , , , , , , , , , ,

In this article we will see that how can use and execute the SQL Commands in Visual Studio. In this article we are using C# language. As we proceed in this article you will see that what steps are required to perform this task. We need the two main classes to do this. These classes are SqlConnection and SqlCommand. ¬†First we will use to include the namespaces that are required to using these two classes. First we will include two namespaces by using ‘using’ keyword. After importing this namespaces we will create the object for SqlConnection and SqlCommand.

Read the rest of this entry »

The Common Type System and the Data Type that .Net Uses

Filed in ASP.NETTags: , , , ,

Because the .NET framework supports multiple languages within the platform, it defines a Common Type System (CTS). The CTS defines the basic data types that IL understands. Each .NET compliant language should map its data type to these standard data types. This makes it possible for the 2 languages to communicate with each other by passing/ receiving parameters to and from each other. For example: CTS defines a type, Int32, as integral data type of 32 bits (4 byte) which is mapped by C# through int and VB.net through its Integer data type.

Read the rest of this entry »

The using Directive and the System Namespace

Filed in ASP.NETTags: , , , ,

As we know a namespaces is a set of related classes. A namespace may also contain other namespaces. Today we will discuss about the System namespace. The System namespace contains the classes that most applications use for interacting with the operating system. You can refer to objects in namespaces by prefixing them explicitly with the identifier of the namespace. For example the System namespace contains the Console class, which provides several methods, including WriteLine.

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 »

How to Develop Resolution Independent Windows Application in .NET

Filed in ASP.NET, Desktop AppTags: , , , , ,

While developing a Windows based application in C#.net the Form size matters when your application is going to run on different different computers. Also the other computers system may have different different resolution. So we need to develop an application that can vary the form size according to the Resolution of the particular system. In this article I will tell you that how to fetch the Resolution of your computer system using C# code and then we will discuss that how can we set the size of the Form that can match the resolution size.

Read the rest of this entry »

Passing Variables between Pages using QueryString in .Net

Filed in ASP.NET, Web AppTags: , , , , , , , ,

A common approach to pass information between web pages is using a Query String in the URL. Also this approach is found in search engines. The QueryString is the portion of the URL after a question mark”?”. The information is always retrievied as a string that can be converted with any type of datatype. Also there are some Advantages and Limitations to using this approach in .NET. I will discuss these advantages and limitations later in this article.

Read the rest of this entry »

Integrating FCKEditor in C#.NET

Filed in ASP.NET, Web AppTags: , , , , , , ,

In this article I am going to implement FCK Editor in C#.NET Application. Perhaps many of you guys aware of FCKEditor, but let me tell you if some of you guys dont know about FCKEditor. CKEditor (formerly FCKeditor) is an open source WYSIWYG text editor from CKSource that can be used in web pages. It aims to be lightweight and requires no client-side installation. Today I will tell you  that how to implement FCKEditor in your .NET Application.

Read the rest of this entry »

How to add TabPages in TabControl dynamically in a C#.NET Window Application

Filed in ASP.NET, Desktop AppTags: , , , , , , , , , , , , ,

Today I will tell you about using Tab Control in a Window Application Form. The Tab Control is mainly used to show our WinForms together as a TabPages. Also I am going to share that how to add TabPages at run time or we can say that add Tabpages dynamically. In this project you will learn many useful things about C# WinForms and Tab Control.

Read the rest of this entry »