%@ Page Language="vb" Debug="true" %>
<% @Import NameSpace="System.Data" %>
<% @Import NameSpace="System.Data.SQLClient" %>
<% @Import NameSpace="System.Diagnostics.Debug" %>
<% @Import Namespace="System.Web.Mail" %>
<% @Import Namespace="System.Text.RegularExpressions" %>
<% @Import NameSpace="System.Data.OleDb" %>
<%@ Import namespace="System.IO" %>
<%@ Import namespace="System.Net" %>
<%
Dim strConn = ("server=localhost; initial catalog=fantasygame;uid=sa;pwd=")
Dim m_conn
Dim m_cmd
dim m_sql as String
Dim sqlConn As New SqlConnection(strConn)
Dim SqlComm as New SqlCommand
Dim r as SqlDatareader
Dim result As Integer
Dim FILENAME as String = Server.MapPath("Lista_Amici.csv")
Dim objStreamReader as StreamReader
objStreamReader = File.OpenText(FILENAME)
Dim i
For i = 1 to 50
Dim contents as String = objStreamReader.ReadLine()
Dim Riga = contents.Replace(vbCrLf, "
")
Dim arr
arr = Split(Riga,";")
If i < 50 Then
%><%
Dim x
For x = 0 to arr.length - 1
%>
|
<%=arr(x)%>
<%
If arr(x) = "" Then
%>Null<%
End If
%>
|
<%
Next
%>
<%
End If
Next
objStreamReader.Close()
%>