主题:[讨论]请教如何用asp.net将服务器上的数据下载到客户机上
以下程序是用asp.net编写的部分网页应用程序,执行这段程序仅可以将数据库中的数据下载到本地网的D:盘上,但下载不到客户机的d:盘上,敬请高手不吝指教,如何在客户机上操作本网页应用功能,将数据下载到自己的机器上,万分感谢!
FileOpen(1, "d:\example.txt", OpenMode.Output)
cnna() '调用程序打开数据库
Dim x
Dim i, j As Integer
Dim myConnection As SqlConnection = cn
Dim ds As DataSet = New DataSet
Dim adapter As SqlDataAdapter = New SqlDataAdapter(bn, myConnection)
adapter.Fill(ds, tablename)
For i = 0 To ds.Tables(0).Rows.Count - 1
For j = 0 To ds.Tables(0).Columns.Count - 1
x = ds.Tables(0).Rows(i).Item(j)
Print(1, x)
Next j
PrintLine(1)
Next i
FileClose(1)
FileOpen(1, "d:\example.txt", OpenMode.Output)
cnna() '调用程序打开数据库
Dim x
Dim i, j As Integer
Dim myConnection As SqlConnection = cn
Dim ds As DataSet = New DataSet
Dim adapter As SqlDataAdapter = New SqlDataAdapter(bn, myConnection)
adapter.Fill(ds, tablename)
For i = 0 To ds.Tables(0).Rows.Count - 1
For j = 0 To ds.Tables(0).Columns.Count - 1
x = ds.Tables(0).Rows(i).Item(j)
Print(1, x)
Next j
PrintLine(1)
Next i
FileClose(1)