Introducing the Sample Application

中间件:分布式系统的交通枢纽与核心组件实战解析 在分布式系统架构中,中间件作为连接应用与基础设施的关键组件,其核心价值在于解耦、复用与标准化。从原理上看,中间件通过提供标准接口和协议,将业务逻辑与底层技术细节分离,例如消息队列实现异步通信,缓存加速数据访问。其技术价值在于提升系统扩展性、可靠性和开发效率,是构建高可用、高性能系统的基石。应用场景广泛,涵盖服务通信、数据管理、系统协调等,例如API网关统一入口、Redis缓存热点数据、Nacos实现服务发现。本文聚焦于中间件的核心思想、主流组件(如Kafka、Redis)的深度解析,并结合部署配置与生产运维 阅读详情
In this section, we'll introduce the major portions of the sample
application you'll be building and investigating as you work through this
book. To get the most out of this book, we assume you are able to perform
the following tasks:

Create programs in some programming language (preferably Visual Basic or
VBScript)

Create a virtual directory in IIS

Create basic HTML Web pages

Write basic SQL statements

At this point, it's worth taking a few minutes to see what types of pages
you'll be creating and how they display data from the Northwind sample
database. We've described the functionality of each page and what you can
expect to learn from each example.

The Main Page
The main page, shown in Figure 1.1, provides a jumping-off place for the
rest of the application. On this page, you'll learn:

How to create hyperlinks using HyperLink controls

How to use LinkButton controls

How to dynamically choose which hyperlinks to display

How to navigate to other pages

Figure 1.1. Use main.aspx to navigate to all your other pages.


The Login Page
You'll use the login page, shown in Figure 1.2, to allow users to log in to
your application. In the beginning of this book, you will use this page to
restrict access to certain menu items. Later, you'll learn to use this page
as a required login page, disallowing access to the site until the user has
successfully authenticated. (In the sample application, one of the valid
login ID/password pairs is King/465.)

Figure 1.2. The Login page helps you to secure your site against unwanted
intruders.


On this page, you'll learn:

How to respond to Click events on Button controls

How to set Session variables

How to use Forms-based authentication

How to redirect to a starting page if a user enters valid authentication
information

How to authenticate users against data in a database

The Products Page
The Products.aspx page, shown in Figure 1.3, uses a number of different
controls and displays data from Microsoft SQL Server. You'll fill
DropDownList controls, a DataGrid control, and Label controls with data
from several tables in the Northwind database.

Figure 1.3. The Products.aspx page shows how to respond to many different
events on different controls.


On this page, you'll learn:

How to react to handle control events

How to use the ADO.NET DataSet object

How to configure a DataAdapter so that it can retrieve data

How to fill a DropDownList control using a DataReader

How to use Connection and Command objects

How to execute action queries

The Employees and Orders Page
The Employees.aspx page, shown in Figure 1.4, displays a drop-down list
containing employee names. When you select an employee, the page displays
orders for the selected employee in a DataGrid control.

Figure 1.4. The Employees.aspx page shows that setting relationships
between tables is easy with the DataSet object.


On this page, you'll learn:

How to build a DataSet containing multiple DataTable objects

How to add a relationship between DataTable objects

How to retrieve orders based on a selected employee, using parent/child
relationships

How to store and retrieve a DataSet using a Session variable

The Employees (Stored Procedures) Page
The EmployeeSP.aspx page, shown in Figure 1.5, will show you how to work
with SQL Server stored procedures. This page demonstrates calling several
stored procedures that you'll add to the Northwind sample database.

Figure 1.5. The EmployeeSP.aspx page shows you how to call stored
procedures using both OleDb and SqlClient namespaces.


On this page, you'll learn:

How to call stored procedures

How to pass parameters to stored procedures

How to retrieve output parameters returned from a stored procedure

How to use both the OleDb and SqlClient namespaces, and why you would use
one or the other

Differences between the OleDb and SqlClient namespaces, with regards to
stored procedures

The Sales by Category Page
The CategorySales.aspx page, shown in Figure 1.6, shows you techniques for
formatting, sorting, and selecting items within the DataGrid control. The
DataGrid control is incredibly powerful, and this page demonstrates many of
the useful features of this control.

Figure 1.6. The DataGrid control can be formatted in many different ways,
and you'll use several useful techniques on this page.


On this page, you'll learn:

How to format columns in a DataGrid control

How to sort a DataGrid's data by clicking the column header

How to select an item and respond to the ItemCommand event procedure

How to pass information to the ItemCommand event procedure

How to enable paging on a DataGrid control

The Edit Products Page
The DataGrid control not only allows you to display data, it allows you to
edit data in place, as well. The ProductsEdit.aspx page, shown in Figure
1.7, will allow you to edit product information within the grid as well as
edit detail information on a separate page.

Figure 1.7. The tasks of adding, editing, and deleting on a DataGrid
control are relatively easy, but they do require some care. This page shows
you how.


On this page, you'll learn:

How to edit data "in place" in the DataGrid control

How to delete a row from a DataGrid and the underlying database table

How to add a row to a DataGrid control and the underlying database table

How to add a hyperlink to a column of data so that selecting an item from
the column navigates to a detail editing page

How to use template columns in a DataGrid control

The Product Details Page
When you select a link on the ProductsEdit.aspx page, shown in Figure 1.7,
you navigate to the ProductDetail.aspx page, shown in Figure 1.8. This page
shows you how to add or edit data on a "detail page" and save that data
back to the underlying database table.

Figure 1.8. A detail page is somewhat easier to enter data into than
editing directly on the DataGrid control. This page shows how you can link
a detail page and a DataGrid control.


On this page, you'll learn:

How to add or edit data retrieved from a DataGrid control

How to submit data back to the database

How to position a DropDownList control to a specified value

The Categories Page
The Categories.aspx page, shown in Figure 1.9, demonstrates how to display
bound lists, drawing items from a data source.

Figure 1.9. Using the Repeater allows you to customize the display of the
data using any HTML templates. In this case, the item template displays a
bulleted list.


On this page, you'll learn:

How to use the Repeater control

How to create header, footer, and item templates

How to load data into the Repeater control

How to display links using the Repeater control

The Category Detail Page
The CategoryDetail.aspx page, shown in Figure 1.10, shows another use of
the Repeater control. In this case, the item template is more complex and
displays data in a nontabular format.

Figure 1.10. You can create complex formatting using the Repeater control
because you decide how to lay out the various data elements.


On this page, you'll learn:

How to use the Repeater control to display a nontabular data layout

How to select an item in the Repeater and display data based on the item
selected

The Employee Information Page
The EmployeeInfo.aspx page, shown in Figure 1.11, shows you how to display
images and detail information and how to edit the data. This page also
demonstrates how to display data in multiple rows and columns (as you might
when displaying data for a phone list or items available for sale).

Figure 1.11. The DataList control is the most flexible control available if
you want to display multiple rows and columns of data.


On this page, you'll learn:

How to use the DataList control

How to display rows of data using the DataList control and its HTML
templates

How to use the HTML designers for DataList templates

How to add, edit, and delete data using the DataList control

The Employee Maintenance Page
The EmpMaint.aspx page, shown in Figure 1.12, shows how you can validate
data on an ASP.NET page. This page demonstrates several different
techniques for validating data, including requiring input, ensuring data is
within a certain range, and running your own code in order to validate data.

Figure 1.12. Validating data is simple using the ASP.NET validation
controls.


On this page, you'll learn:

How to use all the validation controls, including the
RequiredFieldValidator, RegularExpressionValidator, and RangeValidator
controls

How to display a validation summary using the ValidationSummary control

How to create your own validation procedures for use with the
CustomValidator control

The Change Password Page
The PwdChange.aspx page, shown in Figure 1.13, shows how you can compare
two values and disallow posting the page until the values are the same.
This is a common technique used when asking for a new user password. On
this page, you'll learn how to use the CompareValidator control.

Figure 1.13. Use the CompareValidator control to verify that two values
match.


Using the Debugger
The Jumpstart/Debugger/Debugger.sln solution, shown in Figure 1.14, walks
you through using many of the features of the debugger provided by Visual
Studio .NET.

Figure 1.14. Learn to use the Visual Studio .NET debugger with this project.


In this solution, you'll learn:

How to set breakpoints

How to use the Debug class

How to use WriteLine and Assert

How to use conditional compilation

Handling Errors
The Jumpstart/ErrorHandling/ErrorHandling.sln solution, shown in Figure
1.15, walks you through structured exception handling, which is new in
Visual Basic .NET.

Figure 1.15. Demonstrate various types of exception handling using this
sample project.


In this solution, you'll learn:

How to add exception handling to your code

How to use the Try and Catch keywords

How to retrieve exception information

How to add code that runs whether or not an exception occurs using the
Finally keyword

Using the Framework Classes
The Jumpstart/Framework/FrameworkClasses.sln solution, shown in Figure
1.16, introduces and demonstrates several objects and namespaces (selected
from the thousands of available objects and namespaces) provided by the
.NET Framework.

Figure 1.16. This page navigates to sample pages, testing out several of
the .NET Framework classes.


In this solution, you'll learn:

How to use the OleDb and SqlClient namespaces

How to write to a file using the System.IO namespace

How to use the StringBuilder class

How to use the Collection classes

How to use XML classes

Using Other ASP.NET Controls
The Jumpstart/MiscWebControls/MiscWebControls.sln solution, shown in Figure
1.17, walks you through using many of the ASP.NET controls not covered
elsewhere in this book. The .NET Framework provides a rich palette of
server controls, and some of them just didn't fit into the Northwind
project you'll create.

Figure 1.17. Learn how to use the RadioButtonList, CheckBoxList, AdRotator,
Calendar, Literal, and Placeholder controls in this solution.


In this solution, you'll learn:

How to use the CheckBoxList and RadioButtonList controls to select from a
list of values

How to use the Calendar control to select dates

How to use the AdRotator control to display randomly selected images from
an XML file containing a list of available images

How to use the Literal control to inject HTML into a page

How to use the Placeholder control to reserve space for dynamically created
controls

Using the Mobile Internet Toolkit
The Jumpstart/MITSample/MITSample.sln solution, shown in Figure 1.18, walks
you through creating a simple page using the Mobile Internet Toolkit,
showing you how to create Web applications that can be browsed from
multiple handheld devices.

Figure 1.18. The Mobile Internet Toolkit allows you to use Visual Studio
.NET to create mobile applications.


In this solution, you'll learn:

How to build a Web application targeted to mobile devices

How to use the server controls provided by the Microsoft Mobile Internet
Toolkit

How to display data on mobile Web forms

Using State Management
The Jumpstart/StateMgmt/StateMgmt.sln solution, shown in Figure 1.19,
demonstrates using the built-in features of state management in the .NET
Framework.

Figure 1.19. The .NET Framework provides multiple ways in which you can
manage state within your applications. This solution walks you through
several of these techniques.


In this solution, you'll learn:

How to manage state using cookies

How to manage state using StateBag objects

How to manage state using the ASP.NET State service

How to manage state using SQL Server

Introducing Visual Basic .NET Language Basics
The Jumpstart/VBLanguage/VBLanguage.sln solution, shown in Figure 1.20,
introduces you to many of the new features of the Visual Basic .NET
language.

Figure 1.20. Learn features of Visual Basic .NET using this project.


In this solution, you'll learn:

How to respond to events

Which data types are available in VB .NET

How to convert data from one type to another

How to create procedures

How to create classes

How to use Shared methods in classes
Anthropic零胶水层:推理编排层的协议级消融 在大模型工程实践中,'推理编排层'指代应用逻辑与原始模型API之间承担system prompt注入、token管理、流式解析、错误恢复等非核心任务的中间胶水代码。其本质是因模型能力不稳定、输出不可控而被迫上移的工程负债。随着Claude-3.5系列模型稳定性突破99.2%、Rust/WASM基础设施成熟,Anthropic将该层功能从SDK下沉为HTTP协议契约——通过X-Anthropic-System Header、自动token预算、JSON Lines流响应、RFC 7807标准化错误等机制,实现 阅读详情

相关推荐

视觉特征-自监督-掩码特征预测【2024-11】:D-JEPA·T2I(通过下一词元预测实现高分辨率图像合成)【相对于D-JEPA的优化:文本条件、流匹配损失、VoPE】

近年来,自回归模型在类别条件图像生成方面展现了卓越的性能。然而,将下一词元预测应用于高分辨率文本到图像生成仍未得到充分探索。在本文中,我们提出了基于连续词元的自回归模型D-JEPA·T2I,该模型在架构和训练策略上均进行了创新,能够在高达4K的任意分辨率下生成高质量、照片级真实感的图像。在架构方面,我们采用去噪联合嵌入预测架构(D-JEPA),同时利用多模态视觉Transformer有效融合文本和视觉特征。此外,我们引入流匹配损失以及所提出的视觉旋转位置编码(VoPE),以实现连续分辨率学习。

u013250861的博客 131

web项目的两个创建形式website和webapplication

前言 在利用VS2010创建web项目的时候,会有两个选择。可以选择直接创建website网站,还可以选择使用 webapplication应用程序。刚刚接触web开发,看到这两个就疑惑了,既然是都可以,那为什么有两个呢?这样 的分开,肯定是有它的道理的。下面是我对这个问题进行的一些总结,都是从网上找的一些资料,与大家分 享。 w...

369540808 435

视觉特征-自监督-掩码特征预测【2026-03】:V-JEPA2.1【2B】【全Token稠密预测损失】【多层深度自监督】【图像/视频多模态Tokenizer】【160万小时视频】【1.42亿张图像】

Lorenzo Mur-Labadia1,2,∗, Matthew Muckley1, Amir Bar1, Mido Assran1, Koustuv Sinha1, Mike Rabbat1, Yann LeCun1, Nicolas Ballas1,†, Adrien Bardes1,†1FAIR at Meta, 2Universidad de Zaragoza ∗Work done at Meta, †Joint last authorWe present V-JEPA 2.1, a family

u013250861的博客 277

WebApplication和WebSite和SLN文件

转载地址:http://bbs.51aspx.com/showtopic-744.html 本文将向大家简单介绍一下VS2005中WebSite和WebApplicationd的区别,希望能够对大家有所帮助。    WebApplication编程模型的优点:    ●网站编译速度快,使用了增量编译模式,仅仅只有文件被修改后,这部分才会被增量编译进去。    ●生成的程序集

wjjontheway的专栏 1748

Introducing Client Application Deployment with "ClickOnce" - Duncan Mackenzie

IntroductionWeb applications are limited in many ways, yet a large number of Web applications have been built over the last few years and more will continue to be developed going forward. Why do com

流男@水孩 2896

Rebuttal to the KCC v1.0 Code Audit(Rebuttal Page No.2)

The auditor claims that KCC’s AND-gate fluid model assumes a “vacuum” (no cross-traffic) and that the DRAIN timeout “推翻严格最优性证明” (overturns the strict optimality proof). Both claims are incorrect.

liulilittle的博客 583

Profiling

Section #4. Profiling Profiling points you to those regions of code that burn more CPU cycles. Profilers help sense the presence of code bottlenecks and come in different flavors. The OProfile kernel...

mounter625的专栏 867

MCP 让 Agent 会“调用工具”,Sciverse 让它真正“读懂科学”

AI Agent竞争焦点转向可信科学证据获取,Sciverse成为关键基础设施 当前AI Agent的竞争重点已从推理能力转向证据可靠性。最新研究表明,科研Agent的关键瓶颈在于检索能力不足,而非推理链条设计。Sciverse通过结构化接口提供多层级科研检索能力,包括字段发现、结构化检索、语义检索、原文回读和多模态资源获取,为Agent构建了可信证据链。其技术架构将科研检索拆解为清晰层次,支持从筛选到生成的全流程证据锚定。该平台尤其适合科研助手、论文监测和多模态科学Agent三类场景,通过meta-sea

m0_61134850的博客 449

CANN/AMCT DeepSeek-V4-Flash量化流程

This document introduces how to use AMCT to complete end-to-end accuracy evaluation, post-training quantization, and deployment weight export for DeepSeek-V4-Flash. ## Overall Overview This document

gitblog_00636的博客 357

High-Resolution Image Synthesis with Latent Diffusion Models # 基于潜在扩散模型的高分辨率图像合成

Robin Rombach 1 * Andreas Blattmann1 * Dominik Lorenz 1 Patrick Esser ® Björn Ommer 1 1 Ludwig Maximilian University of Munich & IWR, Heidelberg University, Germany ° Runway ML慕尼黑路德维希-马克西米利安大学 & 德国海德堡大学 IWR ° Runway MLhttps://github.com/CompVis/latent-diff

u013250861的博客 56

High-Resolution Image Synthesis with Latent Diffusion Models 基于潜在扩散模型的高分辨率图像合成

Robin Rombach 1 * Andreas Blattmann1 * Dominik Lorenz 1 Patrick Esser ® Björn Ommer 1 1 Ludwig Maximilian University of Munich & IWR, Heidelberg University, Germany ° Runway ML慕尼黑路德维希-马克西米利安大学 & 德国海德堡大学 IWR ° Runway MLhttps://github.com/CompVis/latent-diff

u013250861的博客 82

【202503】Wan:开放且先进的大规模视频生成模型【1.3B、14B】【支持对无限长度视频进行稳定的Inference】【Wan中的主要计算开销来自注意力机制】

wan: Open and Advanced Large-Scale Video Generative ModelsWan:开放且先进的大规模视频生成模型Wan Team, Alibaba Group Wan 团队,Alibaba GroupThis report presents Wan, a comprehensive and open suite of video foundation models designed to push the boundaries of video generation

u013250861的博客 585

视觉特征-自监督-掩码特征预测【2025-06】:V-JEPA-2【100万小时互联网视频,每样本:4秒×4➜16帧】【Stage1:表征学习⮕Stage2:V-JEPA2-AC(自回归下一帧预测)】

图14 展示了在实验室1中,使用杯子进行抓取操作任务的起始和目标框架示例。对于抓取和带物体到达任务,模型仅看到一个目标图像。对于拾取-放置任务,除了最终目标外,我们还向模型展示两个子目标图像。第一个目标图像显示物体被抓取,第二个目标图像显示物体在目标位置附近。模型首先针对第一个子目标优化动作4个时间步,然后自动切换到第二个子目标进行接下来的10个时间步,最后针对第三个目标进行最后4个时间步。

u013250861的博客 66

InternVLA‑A1.5:统一理解、潜在预见与动作,实现组合泛化

前面已经知道,一段视频经过 时空块嵌入(Tubelet Embedding) 之后,会从原始的视频帧转换成一个三维 时空 Token 网格(Spatio-temporal Token Grid)。例如 V-JEPA 中典型的输入:[16,224,224,3][16,224,224,3][16,224,224,3]经过大小为:2×16×162\times16\times162×16×16的三维 Patch Embedding 后,会得到:[8,14,14,de][8,14,14,d_e][8,14,14,de

u013250861的博客 147

具身智能【2026-01】:Being-H0.5【VLA + Flow Matching】【MoT+MoE架构】【UniHand2.0数据集:4 亿个样本/35000小时 】

BeingBeyond Teamhttps://research.beingbeyond.com/being-h05Real-World Deployment Figure 1: Being-H0.5 at a Glance. We scale human-centric robot learning with Being-H0.5 toward cross-embodiment generalization. We introduce UniHand-2.0, a large-scale corpus

u013250861的博客 93

51c深度学习~合集8

方法的完整数学描述略显复杂,如果只是想了解主要思想,可以只看上面 PatchMix的流程图即可(其实只是公式多,每个公式也不复杂,后续有机会做个演示动画,帮助大家理解。这个方法也可以用简单的 Mask 方法实现,但是本方法在大规模图像处理上效率是最高的),对该工作感兴趣的同行可以看一下,我尽量写得清楚一些。结合 PatMix 的流程图,主要过程如下:由于混合图像和混合图像之间,重叠比例的不同,mix-to-mix label 中每一项的权重分数是不同的,根据上图,可以得到权重系数可以表示为。

whaosoft~aiotの开发板商城 2892
上一篇: Preparing for the Sample Application
下一篇: Chapter 2. Introduction to Microsoft .NET
masterall
博客等级 码龄22年 17粉丝 557原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值