ASPxGridView RowUpdating 怎么添加提示:修改成功
如题,代码:
Dim str = e.NewValues("KUNNR").ToString
Dim str1 = If(e.NewValues("STRAS") = Nothing, "", e.NewValues("STRAS"))
Dim str2 = If(e.NewValues("TELF1") = Nothing, "", e.NewValues("TELF1"))
Dim str3 = If(e.NewValues("FNAME1") = Nothing, "", e.NewValues("FNAME1"))
Dim strSql = "update ZCSMS_GET_CUST set STRAS='" + str1 + "',TELF1='" + str2 + "',FNAME1='" + str3 + "' WHERE KUNNR='" + str + "'"
Dim msg As String = ""
If DBClass.ExcuteSql(strSql) Then
'Response.Write("<script>alert('修改成功!');history.go(-1);</script>")
Else
'Response.Write("<script>alert('修改失败!');history.go(-1);</script>")
End If
Me.ReFreshGrid()
e.Cancel = True
Me.ASPxGridView1.CancelEdit()