and in my design page i have a textbox and dropdown value
i want to change the ddl to employee name according to empcode typing in textbox
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjeeb LenkaPosted Oct 9, 2013, 1:05 AM
protected void txtEmployeeCode_TextChanged(object sender, EventArgs e)
{
ListItem item = ddlEmployee.Items.FindByText(txtEmployeeCode.Text);
if (item != null)
{
ddlEmployee.Items.FindByText(txtEmployeeCode.Text).Selected = true;
ModalPopUp.Show();
}
else
Response.Write("");
}
Sanjeeb LenkaPosted Oct 9, 2013, 6:16 AM
happy coding
mohammed shamsheerPosted Oct 9, 2013, 6:13 AM
mohammed shamsheerPosted Oct 9, 2013, 12:39 AM
Sanjeeb LenkaPosted Oct 8, 2013, 7:57 AM
1st get the details of employee and bind it to drop down.
in textfield "employee name" and in value field "employee id"
mohammed shamsheerPosted Oct 8, 2013, 7:23 AM
The textbox resides on modalpopup so its disappear and have to comes again and my another problem is i can't change my datavalue in to emp code be bcz on insertion i need emp id.
Sanjeeb LenkaPosted Oct 8, 2013, 5:26 AM
textbox textchanged event just assign the textbox value to selectedvalue ofthe dropdownlist.
plz share your code what you did . i will modify if required.