asp.net - Login and syntax error -


I try to make a login using asp.net 3.5 and sql server 2005, I am creating a dataset And this code but some code is missing in the code

  protected by btnlogin_Click (ByVal Sender as Object, ByVal E. System.EventArgs) handles btnlogin. Click Login in the New ClassSet.UsersDataTable Dim LoginAdapter as New ClassSetTableAdapters as UsersTableAdapter LoginAdapter.FillBylogin (LoginTable, txtuser.Text, txtpass.Text) DimR as DataRow () = LoginTable. Select ("name = '" and .txtuser.Text & amp; "' password = '" & amp; txtpass.Text & amp;; "'") If Dr. Langs & gt; 0 Answer If the "Copy Redirect" ("MyClassifieds.aspx") Else Label1.Text = "Invalid user name or password" if the end sub  

it says that password = "& Amp; txtpass. Text in line 5. But what I can not do is help in getting it

>

You are missing the name and password between "and" statement

  .Text & amp; "'and password =' "& Amp; txtpass. Text and" "")  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -