Posted on: 8/14/2013 2:24:05 AM | Views : 258

So I am trying to buid myself a basic Login page for a website and I am getting this error "Cannot implicitly convert type 'string' to 'bool'"
Here is my code; 
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void default_btn_Enter_Click(object sender, EventArgs e) { string username = "noddles"; string password = "macaronie"; if (default_txtbox_Username.Text == username) { Server.Transfer("Main.aspx", true); } } }
...

Go to the complete details ...