41
Visual Basic .Net Programming Using Visual Studio .Net MELJUN CORTES MELJUN CORTES

MELJUN CORTES VB,NET Technical faculty module part1 wsd

Embed Size (px)

DESCRIPTION

MELJUN CORTES VB,NET Technical faculty module part1 wsd

Citation preview

Page 1: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Visual Basic .Net Programming Using Visual Studio .Net

MELJUN CORTESMELJUN CORTES

Page 2: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Topics

• Information Technology Trends

• Microsoft Certifications

• Web Design Basics using Visual Studio .NET

• Introduction to Computer Programming using Visual Basic .NET

• Lab Exercises

Page 3: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

IT TRENDS AND MS CERTIFICATIONS

Page 4: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

OBJECTIVES

• To have a better understanding of what IT is all about and the roles it plays, and consequently appreciate it.

• To learn the current trends in IT.

• To get familiar with the career opportunities in IT and the benefits of IT-skilled people.

• To understand the Microsoft Certification Programs

Page 5: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

WHAT IS INFORMATION TECHNOLOGY (IT)?

• IT is the fusion of computer and communication technologies. It offers new ways for communicating and exchanging information and knowledge

• A term that encompasses all forms of technologies used to create, store, exchange and utilize information in its various forms including business data, conversations, still images, motion pictures and multimedia presentations.

Page 6: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

IT TRENDS

Understanding and then making sense of IT trends is a full time job. Trends like wireless, radio frequency ID, and others which seemed rather futuristic just a few years ago are now becoming mainstream. Take a look at some of the major trends in technology.

Trend 1: The Internet and its Web-enabled infrastructure continue to grow and expand

Trend 2: Service and information are now the primary focus for users

Trend 3: Millions of people use handheld computers to manage their schedules, send e-mails and faxes, create documents and more

Page 7: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Trend 4: Mobile computing accelerates dramatically through the use of integrated computing devices

Trend 5: The costs of computing resources continue to decline; human resources continue to increase in cost.

Trend 6: Network bandwidths continue to increase

Trend 7: Investments in technology infrastructure and equipment for schools are expanding

Trend 8: Technology increasingly is being used to change what happens in the classroom or school

IT TRENDS

Page 8: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

PREPARING OUR STUDENTS FOR IT STUDIES/CAREERS

The field of information technology can be a great place to work, and the opportunities you have is enormous. Today, IT specialists are among the highest paid of all occupations. If you want a career in IT, you must in fact “prepare” which means…

Page 9: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

PREPARING OUR STUDENTS FOR IT STUDIES/CAREERS

• You need to carefully select your degree and devote your time and energies to making the best grades.

• You also need to be aware of what jobs are available, what skills you need, and how you can best position yourself to land that job you dream of.

• Get the certification and get into the industry workforce.

Page 10: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

BENEFITS OF IT-SKILLED PEOPLE

Information is now considered to be an extremely valuable commodity. Those who control important information, or simply know how to access or use it, are key players in the information-based economy. Computer literacy and IT skills are essential for success in this society.

Page 11: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

BENEFITS OF IT-SKILLED PEOPLE

• Improved Employment Prospects• Greater Earning Potential• Skills that Covers Different Aspects of Life• Greater Access to Resources• A Foundation of Knowledge for a Lifetime of

Learning

Among the benefits are as follows:

Page 12: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

DEMANDS OF IT

Industries have great demands for IT professionals. The IT field holds a variety of different jobs. Some job titles seem to overlap or perhaps don’t make any sense. But the jobs are there waiting to be filled up. Each has its own set of responsibilities and comes with a rewarding paycheck. Your focus is on understanding what jobs are available and which seem to be of interest to you.

Page 13: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

SKILLS YOU NEED

• Technology Skills

• People Skills

Page 14: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

MICROSOFT (MS) CERTIFICATION

Page 15: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

MS CERTIFICATIONS

• Microsoft certifications represent a rich and wide range of job roles and responsibilities.

• Earning a specific credential provides objective validation of the ability to successfully perform critical IT functions.

• Embraced by industry professionals worldwide, Microsoft certification remains one of the most effective ways to reach long-term career goals.

Page 16: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

MS CERTIFICATIONS

• MCDST MS Certified Desktop Support Technicians (MCDSTs)

• MCSA MS Certified Systems Administrators (MCSAs) • MCSE MS Certified Systems Engineers (MCSEs) • MCDBA MS Certified Database Administrators

(MCDBAs) • MCT MS Certified Trainers (MCTs) • MCAD MS Certified Application Developers (MCADs) • MCSD MSCertified Solution Developers (MCSDs) • Microsoft Office Specialist

Page 17: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

MCP Certification Benefits

• Career Opportunities• Validation of Knowledge and Skills • A Firm Foundation of Skills• Access to career-related tools, private newsgroups, a

one-stop product resource center, and product support guide

• Industry recognition of your knowledge and proficiency with Microsoft products and technologies.

Microsoft Certified Professionals (MCPs) receive the following benefits:

Page 18: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

MCP Certification Benefits

• Microsoft Developer Network (MSDN®) subscription

• Access to exclusive discounts on products and services from selected companies

• MCP logo, certificate, transcript, wallet card, and lapel pin to identify you as an MCP to colleagues and clients

Page 19: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

MCP Certification Benefits

• Invitations to Microsoft conferences, technical training sessions, and special events

• Free access to Microsoft Certified Professional Magazine Online, a career and professional development magazine

• Discount on membership to PASS, the Professional Association for SQL Server

Page 20: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Designing Web Applications using Visual Studio .NET

Page 21: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Objectives

This module aims:• To introduce ASP.NET Web Applications;• To be familiar with the Visual Studio IDE;• To design web applications.

Page 22: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

What is ASP.NET?

• Active Server Pages (ASP) is a technology to create dynamic web sites that allow a visitor to submit values to a web page that would then transmit them to a web server.

• ASP applications were mostly interpreted (except for some libraries (DLLs) while ASP.NET applications are compiled.

Page 23: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

ASP.NET Runtime Compilation

ASPXFile

RequestRequest

ASPXASPX

EngineEngine

ParseParse

Gen’dPageClass

GenerateGenerate

ResponseResponse

RequestRequest

InstantiateInstantiate

ResponseResponse

Code-Code-behindbehindclassclass

PagePage

ClassClass Instantiate, Instantiate, Process and Process and

RenderRender

CompileCompile

We

b b

row

se

rW

eb

bro

ws

er

Web ServerWeb Server

Page 24: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Tools for Creating ASP.NET Web Applications

• Internet Information Service (IIS)

• .NET Framework 1.1

• Development Tools– Notepad– ASP.NET Web Matrix– Visual Studio .NET– Other IDEs

Page 25: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Visual Studio .NET

Visual Studio .NET

Windows Forms Tools

Web Forms Tools

Error Handling

Data Access

Multiple Languages

Web Services

Tools

Develop Debug DeployDesign

Page 26: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Start Page

• Create new projects• Open recent projects

Page 27: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Profile Page

• Set environment defaults

Page 28: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

VB.NET Projects• Windows Application• Class Library

• Control Library

• ASP.NET Web Application

• ASP.NET Web Service• Web Control Library• Console Application• Windows Service

• Empty Project / Empty Web Project

Page 29: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Integrated Development Environment (IDE)

Toolbox

Task List

SolutionExplorer

Dynamic Help

Editor/Browser

PropertiesServer

Explorer

Object Browser

Page 30: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Document Windows• IntelliSense• Clipboard Ring• Macros• Outlining• HTML Editor• XML Editor• …

Page 31: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Solution Explorer• List Projects• Shortcut to code and

design windows• List Project

Resources• Drag and Drop

Support• Add/Remove Project

Resources

Page 32: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Tool Box

• Contains the UI Controls

• Adapts to Document Window

• Grouped Components

• Drag and Drop

Page 33: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Properties Window• Affects the

appearance of the selected control

• Grouped/Sorted properties

• Selection dialogs/popups

• Property descriptions

• Default property selection

Page 34: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Dynamic Help

• Context Sensitive help

• Connects to MSDN Library

• Browse help topics• Programming code

samples

Page 35: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Server Explorer

• Active connection to local/remote servers

• Live connection to server databases

• Lists previously used data connections

Page 36: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Object Browser

• Search/Display Project components, classes, libraries

Page 37: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Creating a Project

• To start Microsoft Visual Studio .NET 2003– Click Start (All) Programs ->Microsoft Visual Studio .NET 2003

-> Microsoft Visual Studio .NET 2003

Page 38: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Creating a Project

• To create an ASP.NET application– Click New Projects– In the dialog box, select

Visual Basic Projects– In the Templates Section,

select ASP.NET Web Application

– In the Location Textbox, on the right side of http://localhost/, type the project name you want

– Click Ok

Page 39: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Visual Control Addition

• To add a control to your form– Drag it from the Toolbox and drop it to your

form or– Double Click the control in the Toolbox

• Once added you can– Position your controls.– Resize your controls.– Change their properties.

Page 40: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Changing the Properties

• To change the properties of a control– Click the control to select it– The Properties window will

display the properties of the selected control

– Modify the value of the property you want to change.

Page 41: MELJUN CORTES VB,NET Technical faculty module   part1 wsd

Testing the Applications

• To view the designed web application– Build the Solution

• On the main menu, click Build->Build Solution

– View the Solution• Right click the web form and click View in Browser• Or open Internet Explorer and type the project’s

URL in the address bar– Ex. http://localhost/ProjectName/WebForm1.aspx