As we know that we use If-Else statement when we have to perform any conditional bases operation. When the condition become true we execute the If block statements and when the condition is false we execute Else block. But sometimes there are a group of conditions where we have to perform one from the group. In this case we use Switch-Case statements. A Switch statement execute the case condition corresponding to the value of expression. First we will use the syntax of using Switch-Case Example. and Then we will use an example.
The famous Java programming language was born out of necessity: the high-level programming language was designed to make object-oriented programming easier. Aside from being a programmer-friendly and relatively easy computing language, people can also share sets of codes with other programmers in an open-source library in different formats such as source codes (.java) or compiled codes (.class). While there are newer and more advance programming languages that just emerged for every programmerâ€™s perusal, Java still remained significant and one of the best coding languages available to everyone. If you are not convinced with the simplicity and enormity Java has to offer, here are some tips why you have to switch to Java now:
Extracting the details from any web page URL is not so easy task. Because you need something to track that page. In this article we are going to extract the details like Title, Description and collection of Images. To do this we need HTML Agility Utility in our web application. When we share a link on Facebook or Google+ we see that the Image and description comes automatically after few seconds. Exactly they have coding to perform this. As we will proceed in this article we will learn step by step to do this. I am attaching a link to download the HTML Agility Utility and also the demo project that you can download on your PC for reference.
As we know that while interacting our SQL database to our C#.net or VB.net application we need to access the connectionstring of the SQL database. Once we access the connectionstring then we can use this to execute the SQL commands in our coding page. Now the question is when we have multiple forms in our desktop application we need to write the connectionstring on each window form to access the SQL database. So guys what to do to ignore this multiple writing of connectionstring on each form? Â To avoid this we use an app.config file into our desktop application as we use the web.config file in web application. As we describe our connectionstring once in this app.config file we can access this connectionstring multiple times on multiple forms from app.config file. in this article we will tell you the process to access this.
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.
Today we will learn that how to use an if-else statement while inserting records into the database. We are talking about the SQL Server database. To understand this example we are understanding a problem that will make easy to Â learn if-else statement. Our problem is we want to insert a record into the table named “StudentRecord”. This table have two columns named ‘student_name’ and ‘student_gender’. We will pass the name and gender as parameter in the stored procedure. Now we have to edit the name according to his/her gender. for example if the student_gender = ‘Male’ then we will add ‘Mr.’ before the name of student. Similarly if the student_gender = ‘Female’ then we will add ‘Mrs/Miss’ before the name of student. Now we are showing that how this task will be done.
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.
The User Defined data type are the type in which we can defined such data type according to our requirement. Some example of user defined data type are Enumeration and Structure Type. Â Today we will discuss the user defined Data Types. In this article we will learn how to declare and define enumeration data type and structure data type. Also we will see that how we can access/ retrieve the values that are stored in these User defined Types. I hope that this will help you to learn something about Enumeration and Structure 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.
There are different types of testing methods and strategies that you can use for the sake of checking if your landing page is up to the mark. However, when you are planning these strategies, there are a few common mistakes that you must avoid.