[OperationContract] [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.WrappedRequest, ResponseFormat = WebMessageFormat.Xml )] public string LogIn(string UserID, string Password) { try { string strUserId = UserID; string strPassword = Password; int rVal; Hashtable inParams = new Hashtable(); inParams.Add("@uid", strUserId); inParams.Add("@Password", strPassword); string result = ""; DataSet objdetDataSet = DataHelper.GetDataSet(connString, "CheckUserExists", out rVal, inParams); if (objdetDataSet.Tables[0].Rows.Count > 0) { result = objdetDataSet.GetXml(); System.Web.HttpContext.Current.Session["UserId"] = objdetDataSet.Tables[0].Rows[0].ItemArray[0].ToString(); } return result; } catch (Exception ex) { return ex.Message; } finally { } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)