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.
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.
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.
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.
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:
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.
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.
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.
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.