Author: billy_111 | Posted on: 4/15/2009 8:37:44 AM | Views : 286

Hey,

I am trying to create a login script using a web service. I want to add a session variable in the code-behind on the website to consume the web method. But i think my web method is wrong..?

  string resultStr = "";

OleDbConnection conn;
OleDbCommand cmd;
OleDbDataReader myReader;

string cmdString = "SELECT [username],[password_test] FROM members WHERE" +
"(([username] = [@username] AND [password_test] = [@password]))";

conn = new OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0; " + "Data Source=|DataDirectory|forum.mdb;" +
"Persist Security Info=False");
cmd = Go to the complete details ...