题目内容

You create a Web Form. The Web Form uses the FormView control to enable a user to edit a record in the database. When the user clicks the Update button on the FormView control, the application must validate that the user has entered data in all of the fields. You need to ensure that the Web Form does not update if the user has not entered data in all of the fields. Which code segment should you use? ()

A. Protected Sub FormView1_ItemUpdating(ByVal sender As Object, _ ByVal e As System.Web.UWebControls.FormViewUpdateEventArgs) _ Handles FormView1.ItemUpdating Dim entry As DictionaryEntry For Each entry In e.Keys If entry.Value.ToString() = System.String.Empty Then e.Cancel = True Return End If Next entryEnd Sub
B. Protected Sub FormView1_ItemUpdated(ByVal sender As Object, _ ByVal e As System.Web.UWebControls.FormViewUpdatedEventArgs) _ Handles FormView1.ItemUpdated Dim entry As DictionaryEntry For Each entry In e.NewValues If entry.Value.Equals("") Then e.KeepInEditMode = True Return End If Next entryEnd Sub
C. Protected Sub FormView1_ItemUpdating(ByVal sender As Object, _ ByVal e As System.Web.UWebControls.FormViewUpdateEventArgs) _ Handles FormView1.ItemUpdating Dim entry As DictionaryEntry For Each entry In e.NewValues If entry.Value.Equals("") Then e.Cancel = True Return End If Next entryEnd Sub
D. Protected Sub FormView1_ItemUpdated(ByVal sender As Object, _ ByVal e As System.Web.UWebControls.FormViewUpdatedEventArgs) _ Handles FormView1.ItemUpdated Dim entry As DictionaryEntry For Each entry In e.Keys If entry.Value.ToString() = System.String.Empty Then e.KeepInEditMode = True Return End If Next entryEnd Su

查看答案
更多问题

慢性肾衰竭尿毒症期可出现酸中毒和高血钾。

A. 正确
B. 错误

一般不宜经常使用、更不宜大幅调整的货币政策工具是()。

A. 再贷款
B. 法定存款准备金率
C. 贴现率政策
D. 公开市场业务

一患者,女,36岁。甲状腺肿大压迫气管。治疗应选用()

A. 抗甲状腺药物
B. 无机碘液
C. 普萘洛尔
D. 放射性碘治疗
E. 手术治疗

________是系统性红斑狼疮引起组织及器官损害的主要机制。

答案查题题库