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

Share book
  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & 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

Book details
Book preview
Table of contents
Citations

About This Book

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

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is ASP.NET and VB.NET in 30 Days an online PDF/ePUB?
Yes, you can access ASP.NET and VB.NET in 30 Days by Dr. Pratiyush Guleria in PDF and/or ePUB format, as well as other popular books in Informatica & Linguaggi di programmazione. We have over one million books available in our catalogue for you to explore.

Information

Year
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 of contents