I am having a issue with my form authenticating the form. I checks to see if there is a password but does not authenticate. Here is my code. Any help would be appreciated.
public partial class _Default : System.Web.UI.Page
{
public string DBConnection = ConfigurationManager.ConnectionStrings["samConnectionString"].ConnectionString;
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
if (IsPostBack)
{
txtMsg.Text = "";
DataSet ps = RunSQLString("select password from tblStoreLogins where store*1 = '" + DDLStoreName.SelectedValue + "' and password = '" + txtPassword.Text.Trim()+"'");
if (txtPassword.Text == "" || ps.Tables.Count == 0)
{
txtMsg.Text = "Please enter ...
Go to the complete details ...