我需要将用户数据发布到网址的解决方案。该项目在VB.Net 2005中.VB应用程序将在用户系统中运行,用户填写的数据将被发送到位于其他位置的URL。
Imports System.Web
Imports System.Configuration
Imports System.Net.Sockets
Imports system.Net
Imports System.Text
Private Sub btnGetData_Click()
Dim r0 As String
Dim r1 As String
Dim r2 As String
Dim r3 As String
Dim r4 As String
Dim q As New Object
r0 = txtID.Text
r1 = txtName.Text
r2 = txtClass.Text
r3 = txtAcad.Text
r4 = txtDateJoined.Text
q = ("r0 = " + r0 + " & r1 = " + r1 + " & r2 = " + r2 + " & r3 = " + r3 + " & r4 = " + r4)
q = ("http://localhost/test.php?" + q)
HttpContext.Current.Response.Redirect(q)
End Sub
-----------------------------
我遇到了一个错误:
处理了NullReferenceException
对象引用未设置为对象的实例
-----------------------------
请使用非常简单的解决方案帮助解决问题。