Nothing found any error. Every things is fine.
Just change your code behind IDs (
txtUsername
)
Previous code
protected void btnLogin_Click(object sender, EventArgs e)
{
{
String uid = "uid=" + txtUsername.Text + ",ou=people,dc=example,dc=com";
Current code
protected void btnLogin_Click(object sender, EventArgs e)
{
{
String uid = "uid=" + txtUserName.Text + ",ou=people,dc=example,dc=com";
and
why are your write inline same cs code, where you used separate cs file