FAROFINHA001
New Member
I'm very new in \[code\]webmatrix\[/code\] I have write code for login page but i don't have any idea is my login success or not? In short how can i switch next page if login success here is my code\[code\] @{ var db=Database.Open("TestData"); var UserName=Request.Form["UserName"]; var Password=Request.Form["Password"]; var error=false; if (IsPost){ var loginquery="SELECT * FROM Test_tb where UserName=@0 and Password=@1"; db.Execute(loginquery,UserName,Password); } }\[/code\]