0
我一直在嘗試創建一個查詢來查詢數據庫並將其複製,以便您可以管理該網站的所有用戶。尺寸錯誤剃刀語法
由於某些原因,For Each給出了Dim的預期表達式的錯誤。
任何幫助理解錯誤將不勝感激。
@Code
PageData("Title") = "Admin"
Layout = "~/_SiteLayout.vbhtml"
Dim db As Database = Database.Open("StarterSite")
Dim selectQueryString = ("SELECT * From UserProfile BY email")
End Code
<section>
Hello and welcome to the control section of the website:
Below is the table of all of the users... Hopefully
<table>
<tr>
<th>Username</th>
<th>Password</th>
<th>email confirmation</th>
</tr>
@For Each(Dim row in db.Query(selectQueryString)){
<tr>
<td> @row.email </td>
<td> @row.password </td>
<td> @row.requireEmailConfirmation </td>
</tr>;
}
Next completed
</table>