ASP.NET and VB.NET in 30 Days
eBook - ePub

ASP.NET and VB.NET in 30 Days

Acquire a Solid Foundation in the Fundamentals of Windows and Web Application Development (English Edition)

Dr. Pratiyush Guleria

Partager le livre
  1. English
  2. ePUB (adapté aux mobiles)
  3. Disponible sur iOS et Android
eBook - ePub

ASP.NET and VB.NET in 30 Days

Acquire a Solid Foundation in the Fundamentals of Windows and Web Application Development (English Edition)

Dr. Pratiyush Guleria

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

Practice VB.NET & ASP.NET in simple steps

Key Features
? VB.NET and ASP.NET topics are demonstrated with various examples in-depth.
? Includes detailed explanations of all VB.NET and ASP.NET programming statements.
? Numerous hands-on exercises demonstrating database and backend programming.

Description
The book teaches the essentials of VB.NET and Active Server Pages (ASP.NET) in about four weeks. This book promises to be an excellent resource for novices interested in learning the essentials of ASP.NET, VB.NET, Windows applications, and online apps.Using examples, this book teaches how to declare variables, operators, and control statements in C++. Standard window controls like Listboxes, Comboboxes, Checkboxes, Radio buttons, Timers, Scrollbars, and Picture boxes are explored and elaborated. The basics of Database Management using VB.NET and ASP.NET are demonstrated through instructive examples. Topics like HTML, CSS, and JavaScript are also addressed in detail in the book. Readers will understand the fundamentals of front-end programming, but they will also gain an understanding of the concept of back-end programming.Topics of Arrays, functions, databases, sessions, and file upload control are covered with practical exercises and use-cases scattered throughout. After reading this book, students will be very familiar with the VB.NET and ASP.NET programming examples and can successfully transition themselves into a professional developer.

What you will learn
? For Windows, you can create simple to complicated applications.
? Develop simple database applications using VB.NET and gain knowledge of HTML, CSS, and JavaScript.
? Utilize the ASP.NET framework to develop web-based apps.
? Develop your backend programming skills while managing database connections.

Who this book is for
This book is intended for developers and students interested in learning about VB.NET and ASP.NET to gain strong scripting skills for developing server-side windows applications. It is not necessary to have any prior knowledge.

Table of Contents
1. Introduction to.Net Framework
2. Variables, Control Statements, and Common Window Controls
3. Arrays, Dialog Boxes and Menu Strip
4. Event Handling and Methods
5. Strings
6. Object Oriented Programming
7. Database Handling
8. Introduction to HTML, CSS and JavaScript
9. Asp.Net using 'VB' Language Syntax
10. Appendix A Solution to Practical Exercises

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que ASP.NET and VB.NET in 30 Days est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  ASP.NET and VB.NET in 30 Days par Dr. Pratiyush Guleria en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Informatica et Linguaggi di programmazione. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2022
ISBN
9789355511072

CHAPTER 1

Introduction to .Net Framework

Introduction

.NET framework is a software development platform developed by Microsoft. With the help of the .NET framework, we can develop Window-based and web-based applications, web services, and so on. The Window-based applications are developed using VB.NET and C#.NET, whereas ASP.NET web-based applications are developed using either VB or C# syntax. In .Net, programming languages like HTML, Visual Basic, C#, and Visual C++ are already built into the integrated development environment. The main components of the .Net framework include .NET class libraries, Common Language Runtime (CLR), Common Type System (CTS), language interoperability, and so on.

Structure

In this chapter, we will cover the following topics:
  • Know about .NET framework
  • Understanding CLR
  • Know about Microsoft Intermediate Language (MSIL)
  • Introduction to Visual Studio.NET

Objective

The objective of this chapter is to get familiar with the .NET framework and the programming environment using Visual Studio .NET. In Visual Studio .NET, the desktop applications and websites can be developed using Visual Basic or C# syntax. After studying this chapter, you will be able to execute a simple example in Visual Studio .NET and learn about the variable declaration in VB.NET using Visual Basic as the programming syntax.

What is .NET framework?

The .NET platform is a new development framework that provides a fresh application programming interface (API) to the services and APIs of the classic Windows operating system. It consists of the following:
  • The ASP web development framework.
  • A commitment to XML and object-oriented design.
  • Support for new web services protocols such as Simple Object Access Protocol (SOAP), Web Service Definition Language (WSDL), and Universal Description Discovery and Integration (UDDI).
  • A set of languages, including C# and Visual Basic .NET.
  • A set of development tools, including Visual Studio .NET.
  • A comprehensive class library for building web services and Windows applications; as well as the Common Language Runtime (CLR) to execute objects built within this framework.
  • Specialized functionality for relational data storage, E-mail, B2B commerce, and so on.
  • New .NET enabled non-PC devices, from cell phones to game boxes.
Microsoft .NET supports not only language independence, but also language integration. It supports object-oriented programming. We can inherit from classes and catch exceptions, and take advantage of polymorphism across different languages. The .NET framework is shown in Figure 1.1:
Figure 1.1: The .NET framework
The current version of the .NET framework is 4.8 and the integrated development environment for developing Window and web-based applications is Microsoft Visual Studio. The latest product name is Microsoft Visual Studio 2019, and it supports the .NET framework 3.5 to 4.8.

Common Type System (CTS)

CTS is a specification by Microsoft for using data types in the .NET framework. It specifies the type definitions and their representations in computer memory.
In .NET, there are classes and objects. The .NET is an object of a specific class that inherits from the root class called System.Object. The common type system supports the general concept of classes, interfaces, and so on.

Common Language Specification (CLS)

.NET specifies the language features supported by the Common Language Runtime (CLR) of the .NET framework. It defines those features that are supported by all languages that target CLR. CLS provides a set of basic rules required for language integration. The Framework Class Library (FCL) is the collection of class libraries which can be used by any language that comply with the CLS.
The .NET framework consists of the following:
  • Four official languages – C#, VB.NET, managed C++, and JScript .NET
  • Common Language Runtime (CLR)
  • An object-oriented platform for Windows and web development that all these languages share
  • A number of related class libraries, collectively known as the Framework Class Library (FCL)

Understanding Common Language Runtime (CLR)

CLR is the most important component of the .NET framework which provides the environment in which programs are executed. Its features include the following:
  • The CLR includes a virtual machine, in many ways similar to the Java virtual machine.
  • The CLR service includes memory management, exception handling, type checking, security checks, and garbage collection.
  • It supports features of object-oriented programming.
  • It loads the classes.
  • CLR converts the Microsoft Intermediate Language (MSIL) code just like Byte codes in Java into native machine codes.

Know about MSIL

In .NET, the programs are not compiled into executable files directly like in other high-level languages such as C, C++, and so on. Here, they are compiled into Microsoft Intermediate Language (MSIL) files, which are then executed by Common Language Runtime (CLR) during runtime.
In CLR, as the name specifies, common language runtime means the same runtime environment supports C sharp development as in VB.NET.
When the project is built, the code is compiled into intermediate language first, which is saved in a file on the disk. Upon running the program, the intermediate language file will be again compiled by the Just-in-Time (JIT) compiler and converted into machine code. This machine code executed by the machine makes the .NET environment platform independent and the compiled code can be reused on heterogeneous platforms. Here, Common Language Specification (CLS), as explained earlier, specifies that all .NET languages produce very similar intermediate language codes. As a result, objects created in one language can be accessed and derived from another. For example, the base class created in VB.NET can then be derived in C#.

Starting Visual Studio.NET

In the Visual Studio .NET environment, there are mainly four components, that is, Form Design Window, Toolbox, Solution Explorer, and Property Window. In Form Design Window, we drag and drop the controls from the toolbox and set the properties of controls from the Property window. In Solution Explorer, there are files related to the Windows application. It contains code window, designer view, and other files related to the project. The Windows Form Application page is depicted in Figure 1.2:
Figure 1.2: Windows Form Application
The components of VB.NET environment are shown in Figure 1.3:
Figure 1.3: Components of VB.NET Windows Application

Dragging and dropping the controls on Form Window and setting the properties

The first step is to start ...

Table des matiĂšres