Ejemplo n.º 1
0
    public string searchUser(string searchText)
    {
        dsUser dsUserSearch;

        string message = "";

        dsUserSearch = myDataLayer.SearchUser(searchText);

        if (dsUserSearch.tblUsers.Count < 1)
        {
            message = "No User found";
            return(message);
        }
        else
        {
            HttpContext.Current.Session["username"] = dsUserSearch.tblUsers[0].Username;
            HttpContext.Current.Response.Redirect("Account Details.aspx");
            return(null);
        }
    }