SlideShare una empresa de Scribd logo
1 de 22
BY
A.Sangeetha M.sc(info tech)
Nadar saraswathi college of arts and science,theni
 .NET (VB.NET) is an object-oriented computer
programming language implemented on the .NET
Framework.
 Although it is an evolution of classic Visual Basic
language, it is not backwards-compatible with VB6,
and any code written in the old version does not
compile under VB.NET. VB.NET is implemented by
Microsoft's .NET framework.
 The .NET framework is a software development platform
developed by Microsoft.
 The framework was meant to create applications, which
would run on the Windows Platform.
 The first version of the .NET framework was released in
the year 2002. The version was called .NET framework
1.0.
 The .NET framework can be used to create both - Form-
based and Web-based applications. Web services can
also be developed using the .NET framework.
 The framework also supports various programming
languages such as Visual Basic and C#.
 So developers can choose and select the language to
develop the required application.
 .NET framework architecture
 .NET components
 .NET framework design principle
 The "Common Language Infrastructure" or CLI is a
platform on which the .Net programs are executed.
 The CLI has the following key features:
 Exception Handling - Exceptions are errors which occur
when the application is executed.
 The .NET Framework includes a set of standard class
libraries. A class library is a collection of methods and
functions that can be used for the core purpose.
 For example, there is a class library with methods to
handle all file-level operations. So there is a method
which can be used to read the text from a file.
Similarly, there is a method to write text to a file.
 Most of the methods are split into either the System.
Or Microsoft. Namespaces. (The asterisk just means
a reference to all of the methods that fall under the
System or Microsoft namespace)
 The types of applications that can be built in the .Net framework is
classified broadly into the following categories.
 Win Forms – This is used for developing Forms-based applications,
which would run on an end user machine. Notepad is an example of
a client-based application.
 ASP. Net – This is used for developing web-based applications,
which are made to run on any browser such as Internet Explorer,
Chrome or Firefox.
 The Web application would be processed on a server, which would
have Internet Information Services Installed.
 Internet Information Services or IIS is a Microsoft component which
is used to execute anAsp.Net application.
 ADO. Net – This technology is used to develop applications to
interact with Databases such as Oracle or Microsoft SQL Server.
 The following design principle of the .Net framework is what makes it very
relevant to create .Net based applications.
 Interoperability - The .Net framework provides a lot of backward support.
Suppose if you had an application built on an older version of the .Net
framework, say 2.0. And if you tried to run the same application on a
machine which had the higher version of the .Net framework, say 3.5. The
application would still work. This is because with every release, Microsoft
ensures that older framework versions gel well with the latest version.
 Portability- Applications built on the .Net framework can be made to work
on any Windows platform. And now in recent times, Microsoft is also
envisioning to make Microsoft products work on other platforms, such as
iOS and Linux.
 Security - The .NET Framework has a good security mechanism. The
inbuilt security mechanism helps in both validation and verification of
applications. Every application can explicitly define their security
mechanism. Each security mechanism is used to grant the user access to the
code or to the running program.
 Memory management - The Common Language runtime does
all the work or memory management. The .Net framework has
all the capability to see those resources, which are not used by a
running program. It would then release those resources
accordingly. This is done via a program called the "Garbage
Collector" which runs as part of the .Net framework.
 The garbage collector runs at regular intervals and keeps on
checking which system resources are not utilized, and frees
them accordingly.
 Simplified deployment - The .Net framework also have tools,
which can be used to package applications built on the .Net
framework. These packages can then be distributed to client
machines. The packages would then automatically install the
application.
 Web Forms is a web application framework and one of
several programming models supported by
the Microsoft ASP.NET technology.
 Web Forms applications can be written in
any programming language which supports the Common
Language Runtime, such as C#or Visual Basic.
 Main building blocks of Web Forms pages are server
controls, which are reusable components responsible for
rendering HTML markup and responding to events
 A technique called view state is used to persist the state of
server controls between normally stateless HTTP requests.
 Web Forms was included in the original .NET
Framework 1.0 release in 2002 (see .NET Framework
version history and ASP.NET version history), as the first
programming model available in ASP.NET.
 Unlike newer ASP.NET components, Web Forms is not
supported by ASP.NET Core
 Web forms are based on ASP.NET (ASP stands for Active
Server Pages). Visual Basic will handle the details of
working with ASP.NET for us, so in the end, it feels much
like you're working with a standard Windows Visual Basic
project.
 But the difference is that you're creating a Web page or
pages that can be accessed by any browser on the Internet.
 These Web pages are given the extension .aspx, so, for
example, if your program is called Calculate Rates, you
might end up simply directing users to a Web page called
CalculateRates.aspx, which they can open in their
browsers
 Web form-based application is much like developing a
Windows form based application.
 Visual Basic will manage the files on the server
automatically, and you don't have to explicitly upload or
download anything, and that's very cool because we can
make use of all that Visual Basic already offers us, such as
drag-and-drop programming, IntelliSense code prompts,
what-you-see-is-what-you-get (WYSIWYG) visual
interface designing, project management, and so on.
 There are two varieties of Web form controls—server
controls and client controls. Web server controls run not in
the browser, but back in the server.
 That means that when an event occurs, the Web page has
to be sent back to the Web server to handle the event.
 However, you can force Web server control events like
Selected Index Changed to be sent back to the server at
the time they occur if you set the control's AutoPostBack
property to True (see "Forcing Event Handling" in the
Immediate Solutions section of this chapter).
Control Does this
Label A label control.
Textbox A text box control.
List Box A list box control.
Image A control that simply displays an image.
Checkbox A checkbox control
Button A button control.
Table A control that creates an HTML table.
 Visual Basic creates some Web server controls especially
for Web forms, but it also supports the standard HTML
controls such as HTML text fields and HTML buttons.
You can turn all standard HTML controls into HTML
server controls, whose events are handled back at the
server.
 To do that, you right-click a control and select the "Run
As Server Control" item. When you do, you can handle
such HTML server controls in Visual Basic code in your
program by connecting event handling code to them just
as you would in Windows forms.
Control Does this
HtmlForm Creates an HTML form.
HtmlTextArea Creates an HTML text area (two-dimensional text
field)
HtmlAnchor Creates an element for navigation
HtmlButton Creates an HTML button using the element.
HtmlInputImage Creates an HTML button that displays images
HtmlSelect Creates an HTML select control.
HtmlImage Creates an HTML specified. Element.
 Web form programming differs from Windows form
programming—in saving the current state of the data in
controls. They're reset to their default value each time the page
is sent on a round trip to the server, so making sure that the
data in your variables is stored is up to you. To see how to do
this, see "Saving Program Data across Server Round Trips" in
the Immediate Solutions section of this chapter.
 There are two possible places to store the data in a page: in the
page itself—that is, in the client—and in the server. To see how
this works, take a look at "Saving Program Data across Server
Round Trips" in this chapter; I'll also take a look at them in
overview here.
 Before you create a Web application, you must have the Internet
Information Server (IIS) running on the target server (which also
must have the .NET Framework installed) that will host your
application.
 The reason IIS must be running on the target server is that Visual
Basic will create the files you need and host them directly on the
server when you create the Web application (usually in the IIS
directory named wwwroot).
 Instead of specifying a local or network disk location in the
Location box, you enter the location you want to use on a Web
server.
 I'm using a local server (that is, a server on my computer) named
STEVE that would make the URL for the main Web form in the
application, which is WebForm1, "http://STEVE/Ch14/application
name/WebForm1.aspx".
THANK YOU

Más contenido relacionado

La actualidad más candente

Developing Microsoft .NET Applications for Windows
Developing Microsoft .NET Applications for Windows Developing Microsoft .NET Applications for Windows
Developing Microsoft .NET Applications for Windows Rishi Kothari
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.netSHADAB ALI
 
Asp.net presentation by gajanand bohra
Asp.net presentation by gajanand bohraAsp.net presentation by gajanand bohra
Asp.net presentation by gajanand bohraGajanand Bohra
 
Inventory management project based on ASP.NET, introduction to C# and ASP.NET
Inventory management project based on ASP.NET, introduction to C# and ASP.NETInventory management project based on ASP.NET, introduction to C# and ASP.NET
Inventory management project based on ASP.NET, introduction to C# and ASP.NETHimanshu Patel
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetAdil Mughal
 
Exploring Adobe Flex
Exploring Adobe Flex Exploring Adobe Flex
Exploring Adobe Flex senthil0809
 
Aspnet architecture
Aspnet architectureAspnet architecture
Aspnet architecturephantrithuc
 
MSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for Developers
MSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for DevelopersMSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for Developers
MSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for DevelopersDave Bost
 
A simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB TechA simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB TechPooja Gaikwad
 
Create folder in microsoft office 365 share point using mule esb
Create folder in microsoft office 365 share point using mule esbCreate folder in microsoft office 365 share point using mule esb
Create folder in microsoft office 365 share point using mule esbSanjeet Pandey
 
Flex And Ria
Flex And RiaFlex And Ria
Flex And Riaravinxg
 
Flex Introduction
Flex Introduction Flex Introduction
Flex Introduction senthil0809
 

La actualidad más candente (15)

Asp.net
Asp.netAsp.net
Asp.net
 
Developing Microsoft .NET Applications for Windows
Developing Microsoft .NET Applications for Windows Developing Microsoft .NET Applications for Windows
Developing Microsoft .NET Applications for Windows
 
Wpf 1
Wpf 1Wpf 1
Wpf 1
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
 
Asp.net presentation by gajanand bohra
Asp.net presentation by gajanand bohraAsp.net presentation by gajanand bohra
Asp.net presentation by gajanand bohra
 
Inventory management project based on ASP.NET, introduction to C# and ASP.NET
Inventory management project based on ASP.NET, introduction to C# and ASP.NETInventory management project based on ASP.NET, introduction to C# and ASP.NET
Inventory management project based on ASP.NET, introduction to C# and ASP.NET
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp Net
 
Exploring Adobe Flex
Exploring Adobe Flex Exploring Adobe Flex
Exploring Adobe Flex
 
Aspnet architecture
Aspnet architectureAspnet architecture
Aspnet architecture
 
ASP.NET Basics
ASP.NET Basics ASP.NET Basics
ASP.NET Basics
 
MSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for Developers
MSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for DevelopersMSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for Developers
MSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for Developers
 
A simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB TechA simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB Tech
 
Create folder in microsoft office 365 share point using mule esb
Create folder in microsoft office 365 share point using mule esbCreate folder in microsoft office 365 share point using mule esb
Create folder in microsoft office 365 share point using mule esb
 
Flex And Ria
Flex And RiaFlex And Ria
Flex And Ria
 
Flex Introduction
Flex Introduction Flex Introduction
Flex Introduction
 

Similar a VB.NET Framework Guide for Beginners

Unit - 1: ASP.NET Basic
Unit - 1:  ASP.NET BasicUnit - 1:  ASP.NET Basic
Unit - 1: ASP.NET BasicKALIDHASANR
 
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Top 10 -  ASP.NET Interview Questions And Answers 2023.pdfTop 10 -  ASP.NET Interview Questions And Answers 2023.pdf
Top 10 - ASP.NET Interview Questions And Answers 2023.pdfRuddarpratap
 
Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architectureIblesoft
 
Online furniture management system
Online furniture management systemOnline furniture management system
Online furniture management systemYesu Raj
 
ASP.NET Unit-2.pdf
ASP.NET Unit-2.pdfASP.NET Unit-2.pdf
ASP.NET Unit-2.pdfabiraman7
 
Bn1001 demo ppt advance dot net
Bn1001 demo ppt advance dot netBn1001 demo ppt advance dot net
Bn1001 demo ppt advance dot netconline training
 
A simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworkA simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworksonia merchant
 
Online advertising management system
Online advertising management systemOnline advertising management system
Online advertising management systemYesu Raj
 
Online advertising management system
Online advertising management systemOnline advertising management system
Online advertising management systemYesu Raj
 
Automatic answer checker
Automatic answer checkerAutomatic answer checker
Automatic answer checkerYesu Raj
 
What is ASP.NET and Why do we need it?
What is ASP.NET and Why do we need it?What is ASP.NET and Why do we need it?
What is ASP.NET and Why do we need it?Natural Group
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01Vivek chan
 

Similar a VB.NET Framework Guide for Beginners (20)

Asp.netrole
Asp.netroleAsp.netrole
Asp.netrole
 
Asp.net
Asp.netAsp.net
Asp.net
 
Unit - 1: ASP.NET Basic
Unit - 1:  ASP.NET BasicUnit - 1:  ASP.NET Basic
Unit - 1: ASP.NET Basic
 
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Top 10 -  ASP.NET Interview Questions And Answers 2023.pdfTop 10 -  ASP.NET Interview Questions And Answers 2023.pdf
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
 
As pnet
As pnetAs pnet
As pnet
 
Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architecture
 
Beginners introduction to asp.net
Beginners introduction to asp.netBeginners introduction to asp.net
Beginners introduction to asp.net
 
Online furniture management system
Online furniture management systemOnline furniture management system
Online furniture management system
 
ASP.NET Unit-2.pdf
ASP.NET Unit-2.pdfASP.NET Unit-2.pdf
ASP.NET Unit-2.pdf
 
Bn1001 demo ppt advance dot net
Bn1001 demo ppt advance dot netBn1001 demo ppt advance dot net
Bn1001 demo ppt advance dot net
 
A simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworkA simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-framework
 
Online advertising management system
Online advertising management systemOnline advertising management system
Online advertising management system
 
Online advertising management system
Online advertising management systemOnline advertising management system
Online advertising management system
 
Automatic answer checker
Automatic answer checkerAutomatic answer checker
Automatic answer checker
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
What is ASP.NET and Why do we need it?
What is ASP.NET and Why do we need it?What is ASP.NET and Why do we need it?
What is ASP.NET and Why do we need it?
 
Asp
AspAsp
Asp
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01
 
Asp.net Vs Vue.js.pdf
Asp.net Vs Vue.js.pdfAsp.net Vs Vue.js.pdf
Asp.net Vs Vue.js.pdf
 
Food borne human diseases
Food borne human diseasesFood borne human diseases
Food borne human diseases
 

Más de SangeethaSasi1 (20)

L4 multiplexing & multiple access 16
L4 multiplexing & multiple access 16L4 multiplexing & multiple access 16
L4 multiplexing & multiple access 16
 
Image processing using matlab
Image processing using matlab Image processing using matlab
Image processing using matlab
 
Mc ppt
Mc pptMc ppt
Mc ppt
 
Mc ppt
Mc pptMc ppt
Mc ppt
 
Dip pppt
Dip ppptDip pppt
Dip pppt
 
Web techh
Web techhWeb techh
Web techh
 
Web tech
Web techWeb tech
Web tech
 
Vani wt
Vani wtVani wt
Vani wt
 
Vani dbms
Vani dbmsVani dbms
Vani dbms
 
Hema wt (1)
Hema wt (1)Hema wt (1)
Hema wt (1)
 
Hema rdbms
Hema rdbmsHema rdbms
Hema rdbms
 
Web tech
Web techWeb tech
Web tech
 
Dbms
DbmsDbms
Dbms
 
Vani
VaniVani
Vani
 
Hema se
Hema seHema se
Hema se
 
Software
SoftwareSoftware
Software
 
Operating system
Operating systemOperating system
Operating system
 
Dataminng
DataminngDataminng
Dataminng
 
System calls
System callsSystem calls
System calls
 
Java
JavaJava
Java
 

Último

MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 

Último (20)

MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 

VB.NET Framework Guide for Beginners

  • 1. BY A.Sangeetha M.sc(info tech) Nadar saraswathi college of arts and science,theni
  • 2.  .NET (VB.NET) is an object-oriented computer programming language implemented on the .NET Framework.  Although it is an evolution of classic Visual Basic language, it is not backwards-compatible with VB6, and any code written in the old version does not compile under VB.NET. VB.NET is implemented by Microsoft's .NET framework.
  • 3.  The .NET framework is a software development platform developed by Microsoft.  The framework was meant to create applications, which would run on the Windows Platform.  The first version of the .NET framework was released in the year 2002. The version was called .NET framework 1.0.
  • 4.  The .NET framework can be used to create both - Form- based and Web-based applications. Web services can also be developed using the .NET framework.  The framework also supports various programming languages such as Visual Basic and C#.  So developers can choose and select the language to develop the required application.
  • 5.  .NET framework architecture  .NET components  .NET framework design principle
  • 6.
  • 7.  The "Common Language Infrastructure" or CLI is a platform on which the .Net programs are executed.  The CLI has the following key features:  Exception Handling - Exceptions are errors which occur when the application is executed.
  • 8.  The .NET Framework includes a set of standard class libraries. A class library is a collection of methods and functions that can be used for the core purpose.  For example, there is a class library with methods to handle all file-level operations. So there is a method which can be used to read the text from a file. Similarly, there is a method to write text to a file.  Most of the methods are split into either the System. Or Microsoft. Namespaces. (The asterisk just means a reference to all of the methods that fall under the System or Microsoft namespace)
  • 9.  The types of applications that can be built in the .Net framework is classified broadly into the following categories.  Win Forms – This is used for developing Forms-based applications, which would run on an end user machine. Notepad is an example of a client-based application.  ASP. Net – This is used for developing web-based applications, which are made to run on any browser such as Internet Explorer, Chrome or Firefox.  The Web application would be processed on a server, which would have Internet Information Services Installed.  Internet Information Services or IIS is a Microsoft component which is used to execute anAsp.Net application.  ADO. Net – This technology is used to develop applications to interact with Databases such as Oracle or Microsoft SQL Server.
  • 10.  The following design principle of the .Net framework is what makes it very relevant to create .Net based applications.  Interoperability - The .Net framework provides a lot of backward support. Suppose if you had an application built on an older version of the .Net framework, say 2.0. And if you tried to run the same application on a machine which had the higher version of the .Net framework, say 3.5. The application would still work. This is because with every release, Microsoft ensures that older framework versions gel well with the latest version.  Portability- Applications built on the .Net framework can be made to work on any Windows platform. And now in recent times, Microsoft is also envisioning to make Microsoft products work on other platforms, such as iOS and Linux.  Security - The .NET Framework has a good security mechanism. The inbuilt security mechanism helps in both validation and verification of applications. Every application can explicitly define their security mechanism. Each security mechanism is used to grant the user access to the code or to the running program.
  • 11.  Memory management - The Common Language runtime does all the work or memory management. The .Net framework has all the capability to see those resources, which are not used by a running program. It would then release those resources accordingly. This is done via a program called the "Garbage Collector" which runs as part of the .Net framework.  The garbage collector runs at regular intervals and keeps on checking which system resources are not utilized, and frees them accordingly.  Simplified deployment - The .Net framework also have tools, which can be used to package applications built on the .Net framework. These packages can then be distributed to client machines. The packages would then automatically install the application.
  • 12.  Web Forms is a web application framework and one of several programming models supported by the Microsoft ASP.NET technology.  Web Forms applications can be written in any programming language which supports the Common Language Runtime, such as C#or Visual Basic.  Main building blocks of Web Forms pages are server controls, which are reusable components responsible for rendering HTML markup and responding to events
  • 13.  A technique called view state is used to persist the state of server controls between normally stateless HTTP requests.  Web Forms was included in the original .NET Framework 1.0 release in 2002 (see .NET Framework version history and ASP.NET version history), as the first programming model available in ASP.NET.  Unlike newer ASP.NET components, Web Forms is not supported by ASP.NET Core
  • 14.  Web forms are based on ASP.NET (ASP stands for Active Server Pages). Visual Basic will handle the details of working with ASP.NET for us, so in the end, it feels much like you're working with a standard Windows Visual Basic project.  But the difference is that you're creating a Web page or pages that can be accessed by any browser on the Internet.  These Web pages are given the extension .aspx, so, for example, if your program is called Calculate Rates, you might end up simply directing users to a Web page called CalculateRates.aspx, which they can open in their browsers
  • 15.  Web form-based application is much like developing a Windows form based application.  Visual Basic will manage the files on the server automatically, and you don't have to explicitly upload or download anything, and that's very cool because we can make use of all that Visual Basic already offers us, such as drag-and-drop programming, IntelliSense code prompts, what-you-see-is-what-you-get (WYSIWYG) visual interface designing, project management, and so on.
  • 16.  There are two varieties of Web form controls—server controls and client controls. Web server controls run not in the browser, but back in the server.  That means that when an event occurs, the Web page has to be sent back to the Web server to handle the event.  However, you can force Web server control events like Selected Index Changed to be sent back to the server at the time they occur if you set the control's AutoPostBack property to True (see "Forcing Event Handling" in the Immediate Solutions section of this chapter).
  • 17. Control Does this Label A label control. Textbox A text box control. List Box A list box control. Image A control that simply displays an image. Checkbox A checkbox control Button A button control. Table A control that creates an HTML table.
  • 18.  Visual Basic creates some Web server controls especially for Web forms, but it also supports the standard HTML controls such as HTML text fields and HTML buttons. You can turn all standard HTML controls into HTML server controls, whose events are handled back at the server.  To do that, you right-click a control and select the "Run As Server Control" item. When you do, you can handle such HTML server controls in Visual Basic code in your program by connecting event handling code to them just as you would in Windows forms.
  • 19. Control Does this HtmlForm Creates an HTML form. HtmlTextArea Creates an HTML text area (two-dimensional text field) HtmlAnchor Creates an element for navigation HtmlButton Creates an HTML button using the element. HtmlInputImage Creates an HTML button that displays images HtmlSelect Creates an HTML select control. HtmlImage Creates an HTML specified. Element.
  • 20.  Web form programming differs from Windows form programming—in saving the current state of the data in controls. They're reset to their default value each time the page is sent on a round trip to the server, so making sure that the data in your variables is stored is up to you. To see how to do this, see "Saving Program Data across Server Round Trips" in the Immediate Solutions section of this chapter.  There are two possible places to store the data in a page: in the page itself—that is, in the client—and in the server. To see how this works, take a look at "Saving Program Data across Server Round Trips" in this chapter; I'll also take a look at them in overview here.
  • 21.  Before you create a Web application, you must have the Internet Information Server (IIS) running on the target server (which also must have the .NET Framework installed) that will host your application.  The reason IIS must be running on the target server is that Visual Basic will create the files you need and host them directly on the server when you create the Web application (usually in the IIS directory named wwwroot).  Instead of specifying a local or network disk location in the Location box, you enter the location you want to use on a Web server.  I'm using a local server (that is, a server on my computer) named STEVE that would make the URL for the main Web form in the application, which is WebForm1, "http://STEVE/Ch14/application name/WebForm1.aspx".