Forum: ASP.NET |
Thema:
"WebMatrix" (If abfrage erstellen) |
Von:
G. Guest (
30.08.2004 10:00) |
Sub Page_Load(sender As Object, e As EventArgs)
Dim myDataset As New DataSet()
Dim strConn As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Replace(Server.MapPath("."), "\", "\\") & "\\standorte.xls;" & _
"Extended Properties=""Excel 8.0;"""
Dim myOleDbDataAdapter As New OleDbDataAdapter("SELECT * FROM [Standorte$A2:A2]", strConn)
myOleDbDataAdapter.Fill(myDataset)
DataGrid1.DataSource = myDataset.Tables(0).DefaultView
DataGrid1.DataBind()
response.write("<" & "img src='D:/homepage/bilder/neu_Karte/nrw.jpg'" & ">" )
dim oben as integer
dim links as integer
'if .......
oben=200
links=300
response.write("<" & "div style='POSITION: absolute; TOP: " & oben & "px; LEFT: " & links & "px;' Z-INDEX: 10" & ">" & "<" & "img src='D:/TEST_ASP/punkt.gif'" & ">" & "<" & "/" & "div" & ">")
'end if
End Sub
Betreff |
Von |
Datum |
|
|
Hannes
Preishuber
|
30.08.2004 13:35 |
|
|
Antworten
Vorsicht bei der Eingabe: Die Zeichen ' oder -- sind nicht erlaubt!