Chapter 7. Working with ASP.NET and VB .NET

学习提速专享!AI工具全家桶免费用 限时购周边加赠Coding Plan Lite,解锁20+主流AI工具,写代码、查资料快人一步! 阅读详情
Chapter 7. Working with ASP.NET and VB .NET
OBJECTIVES

Learn event-handling basics

Learn Visual Basic .NET data types

Learn to create procedures and classes

Use the StringBuilder class

When you start coding using the .NET Framework, you will find yourself faced
with many new concepts. Even if you are moving to .NET from the Visual
Basic 6 programming environment, you will find that many familiar features
now behave slightly differently, and these differences all have enough of a
twist to them that you will need to take some time to learn how the new and
modified features work.

Of course, one of the most important programming concepts in Visual Basic
is that of events. You need to learn about how events happen, as well as
what the parameters that the .NET Framework passes to event-handling
procedures are used for. Event handling is probably the most important
concept in any .NET application, whether you are writing a desktop
application or a Web application. Much of what you do as a developer
revolves around writing code in response to the user performing some
action. It is up to you to create the code that runs in response to these
user actions.

Manipulating data is another key area that you should understand before you
get too far along with your .NET programming. There are many different
types of data梥uch as text, numeric values, and objects梩hat you will need
to work with in your code. VB .NET supplies specific data types to help you
distinguish between all the different types. It is important you understand
what you can store into each data type and how you can convert one data
type to another.

Another important concept is that of classes and objects and their use.
Although classes are not new to most Visual Basic developers, the
techniques you employ to create and use them is somewhat different in VB
.NET than in Visual Basic 6. In this chapter, you will learn the basics of
creating a class, and you'll apply those concepts to the Northwind solution
that you have been building so far in this book.
 
PPMM图片I .,,,::::t:MMMMMMMMMBVt:+..    ,IVXVYIBttt+::+IVVMMMMMMRR:   ,YYVYItMYti+i++:X+Rt:tXWRMR,    .YRiIYRMViitVXRWRYMI++++itMM..    .Y+,.,X::,,,YMMMMMMMMRVItXMti     :X+:,X:,. .,iiIRMWMMMBBRMMBY.     tR+:I: 阅读详情

相关推荐

Visual Studio Integrated Development Environment (IDE)

Visual Studio Integrated Development Environment (IDE)When you start a new project in Visual Studio .NET, you will see a group of windows opened within the development environment (one possible layout

★★创造未来★★ 1323

Prerequisites

This book is designed for programmers who need to know how to program a Web application. If you are a programmer and/or Web designer who has some experience with VBScript or ColdFusion, you will get a

★★创造未来★★ 1228

Conditional Compilation

Conditional CompilationAlthough debugging techniques can help you iron out problems in your code, you may want to simply add chunks of code at compile time (if youre currently in the debugging phase

★★创造未来★★ 1265

Data Types

Data TypesVisual Basic .NET provides a broad range of data types that you can use when defining variables and working with data. These data types are slightly different from those provided by VB6 or V

★★创造未来★★ 1216

Preparing for the Sample Application

Preparing for the Sample ApplicationThe sample application is built using Microsoft SQL Servers Northwind sample database. If you do not have Microsoft SQL Server available, you can use the Access/Je

★★创造未来★★ 1133

Comparing Values

Comparing ValuesIts sometimes useful to be able to validate one controls data by comparing it to the data in another control or to a specified value. The CompareValidator control allows you to do bo

★★创造未来★★ 1052

10.6 Signatures and overloading

its formal parameters, considered in the order left to right. The signature of a methodspecifically does not include the return type, nor does it include the params modifier that may bespecified for t

★★创造未来★★ 1037

Validating Expressions

Validating ExpressionsWhat if you need to verify that text someone has entered is a correctly formatted Canadian postal code? What if you need a user to enter a valid e-mail address? Although you coul

★★创造未来★★ 1023

The System.Web.Services Namespace

The System.Web.Services NamespaceXML Web Services provide one of the newest and most exciting technologies for development, as far as were concerned. Although the .NET platform, and Visual Studio .NE

★★创造未来★★ 1021

Useful Versus .NET Debugging Tools

Useful Versus .NET Debugging ToolsBreakpoints are great, but theyre not enough. You need to be able to view and modify data, find out how the execution path got you to the current location, and what

★★创造未来★★ 994

Project Templates

Project TemplatesThe .NET platform supports a variety of project types. Visual Studio .NET provides you with templates that make the task of creating and getting started with a new project simpler. Ta

★★创造未来★★ 994

Benefits of Using the .NET Framework

Benefits of Using the .NET Framework.NET provides advantages for everyone involved with the application-development process. The discussion in this section takes into account the people who will be di

★★创造未来★★ 994

Requiring Data Entry

Requiring Data EntryYoull often need to ensure that users enter a value into a control on a page. To make this easy, ASP.NET provides its RequiredFieldValidator control. On the sample page, EmpMaint.

★★创造未来★★ 983

Event-Handling Basics

Event-Handling BasicsThe process of creating a Web Forms user interface involves placing controls onto a page and then writing code to react to events that occur as users interact with those controls.

★★创造未来★★ 975

C++ 智能指针:auto_ptr / unique_ptr / shared_ptr / weak_ptr 原理与使用

智能指针拷贝核心原理适用场景auto_ptr转移所有权废弃不要用unique_ptr❌禁止拷贝 ✅支持 move独占资源独占所有权,默认首选shared_ptr✅支持拷贝引用计数需要多指针共享资源weak_ptr不持有资源不增加计数解决 shared_ptr 循环引用编码建议:优先用unique_ptr;确需共享再选shared_ptr;存在双向引用 / 环形结构,配合weak_ptr。

dajuc的博客 288

.NET新特性·第17篇】EF Core 10 与 Aspire 13.1

EFCore 10 引入复杂类型JSON映射、命名查询过滤器、批量操作增强等特性,提升数据访问效率与灵活性;Aspire 13.1深化Azure/AWS集成,支持Redis作为LLM缓存,Dashboard可观测性升级,助力云原生与AI应用开发。

hanzhixintianxia的博客 243

微软技术日报 2026-09-10:Project Zenith 开发者设备亮相,.NET 11 RC1 可投产

今天的微软把重心放在「开发者的一公里」:设备端(Project Zenith)、运行时(.NET 11 RC1)、模型层(Copilot 多模型矩阵)三层同时发力,开发者环境从"自己搭"走向"买来就能写"。参考来源:微软官方博客(Project Zenith)、.NET 官方发布说明、TechRepublic、腾讯新闻科技频道、第一财经、IT之家。本文由 AI 辅助整理,仅覆盖技术动态,不含财务信息。

海盗Sharp的博客 433

基于.NET的Windows窗体编程之WinForms自定义控件(1)

本文介绍在.NET WinForms开发中如何创建自定义控件,重点讲解用户控件(UserControl)的实现。通过封装一个可清除文本框(ClearableTextBox),演示了属性公开、事件转发与逻辑封装的完整流程。该控件包含标题、输入框和清除按钮,支持外部访问属性与事件响应,实现复用性与维护性提升。示例展示了控件在窗体中的应用及联动逻辑,适用于复杂界面组件的模块化设计,为后续扩展控件与自定义控件学习奠定基础。

绳锯木断,水滴石穿,专心写文,无问西东!!! 334

.NET 9.0 项目升级到 .NET 10.0

关于.NET项目升级到.NET10的步骤,包括改目标框架、重新生成、升级NuGet包、处理版本冲突等。 本文介绍.NET项目升级至.NET10.0的完整流程:修改目标框架、重新生成、升级NuGet包,并处理包版本依赖冲突问题。提供详细操作指南与参考文章,帮助开发者顺利完成升级。

csdn_aspnet的专栏,请点击博客主页右上角三个点中的私信联系 428
上一篇: Creating the Northwind Solution
下一篇: Event-Handling Basics
masterall
博客等级 码龄22年 17粉丝 557原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值