我有这样的 VB.net 代码:
Protected Sub Button_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button.Click
Dim Adapter As New SqlDataAdapter
Dim sql As String = "select House , OPR_BALANCE from vAgeLast where LEN(HOUSE) = 8 and OPR_BALANCE > 1000000 order by OPR_BALANCE desc"
SqlConn.Open()
sqlCmd = New SqlCommand(sql, SqlConn)
Adapter.SelectCommand = sqlCmd
Adapter.Fill(ds)
For i = 0 To ds.Tables(0).Rows.Count - 1
idCustomer = ds.Tables(0).Rows(i)("House").ToString()
amt = ds.Tables(0).Rows(i)("OPR_BALANCE").ToString()
lang = "0"
aid = "000000"
Dim result As String = "http://soap.Services.com:2121/WS.aspx/?c=1&id=" + idCustomer + "&lang=" + lang + ""
Response.Redirect(result)
Next
Adapter.Dispose()
sqlCmd.Dispose()
SqlConn.Close()
End Sub
在这段代码中,我想处理来自数据集结果的所有值,这些值只能通过重定向到 url 来获得,但是当我运行代码时,它只运行一次。
是否可以重定向到 url 而不会在网站上显示反馈?