我想創建一個簡單的登錄表單,而無需在數據庫連接在vb.net但我收到錯誤時試圖執行它。登錄表單在vb.net沒有數據庫
我的代碼是:
<script runat="server">
Sub Page_Load
If (txtuname.Text == "xxx") AND (txtpass.Text == "xxx") Then
response.write("Welcome user")
Server.Transfer("login2.aspx")
Else
response.write("Invalid username and password")
Server.Transfer("login.aspx")
End IF
End sub
</script>
而且我得到的錯誤是:
表達預計:如果(txtuname.Text == 「XXX」)AND(txtpass.Text = =「xxx」)Then
如何解決此問題?