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

Buch teilen
  1. English
  2. ePUB (handyfreundlich)
  3. Über iOS und Android verfügbar
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

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Über dieses Buch

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

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist ASP.NET and VB.NET in 30 Days als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu ASP.NET and VB.NET in 30 Days von Dr. Pratiyush Guleria im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Informatica & Linguaggi di programmazione. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

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

Inhaltsverzeichnis