Select Case e.Path
Case "AddNew.htm"
Dim nms() As String = {"产品","客户","数量","单价","日期"}
For Each nm As String In nms
If e.PostValues.ContainsKey(nm) = False Then
e.AppendCookie("error","请输入" & nm)
Return
End If
Next
Dim dr As DataRow = DataTables("订单").AddNew()
For Each nm As String In nms
dr(nm) = e.PostValues(nm)
Next
dr.Save()
e.WriteString(dr("_Identify")) '返回主键列的值给客户端
dr.Remove() '移除此行
End Select
这是移动开发文档里的代码。
dr.Remove() ,为什么要在最后加一个移除此行的代码呢?请老师指点