至于数据更新可以点击Application面板中的Server Behaviors中的”+”按钮,选择Update Record。

[图 6-9 选择Update Record]

[图6-10 设置关联]
在弹出的对话框中,需将输入框和相对应更新的数据源关联起来,并设置数据类型。其中CODE应为关键字即Primary Key。类似于Insert Record的页面,还要设置成功添加和添加失败跳转到的页面。
现在可以预览一下做好的页面。输入网址http://yoursite/location3.aspx,可以看到如图6-11的页面。

[图6-11 location3.aspx页面浏览]
Location_name的一项是可以点击的,并将跳到细节页面modify.aspx。

[图6-12 更新页面预览]