Hash Table Problem Urgent
-
I have a datatable named EmployeeDT. I am using hastable to store data. I want to to take an employeeID of EmployeeName from data table When i select Employee name in the combobox and add to HashTable. But i am Binding only EmployeeName.So how can i get Emplyee Id to add to Hash Table? I am binding data to combobox using this method foreach(DataRow drow in EmployeeDT.Rows) { cboemployee1.Items.Add(drow["Name"].ToString().Replace("\"","\'")); cboemployee2.Items.Add(drow["Name"].ToString().Replace("\"","\'")); cboemployee3.Items.Add(drow["Name"].ToString().Replace("\"","\'")); } From this code how can i add key to the hash table
-
I have a datatable named EmployeeDT. I am using hastable to store data. I want to to take an employeeID of EmployeeName from data table When i select Employee name in the combobox and add to HashTable. But i am Binding only EmployeeName.So how can i get Emplyee Id to add to Hash Table? I am binding data to combobox using this method foreach(DataRow drow in EmployeeDT.Rows) { cboemployee1.Items.Add(drow["Name"].ToString().Replace("\"","\'")); cboemployee2.Items.Add(drow["Name"].ToString().Replace("\"","\'")); cboemployee3.Items.Add(drow["Name"].ToString().Replace("\"","\'")); } From this code how can i add key to the hash table
Please don't repost problems so soon after you've posted them before. I notice that you've been presented with an answer and that you have chosen to ignore this. This site isn't for us to do your work for you.
Deja View - the feeling that you've seen this post before.
-
I have a datatable named EmployeeDT. I am using hastable to store data. I want to to take an employeeID of EmployeeName from data table When i select Employee name in the combobox and add to HashTable. But i am Binding only EmployeeName.So how can i get Emplyee Id to add to Hash Table? I am binding data to combobox using this method foreach(DataRow drow in EmployeeDT.Rows) { cboemployee1.Items.Add(drow["Name"].ToString().Replace("\"","\'")); cboemployee2.Items.Add(drow["Name"].ToString().Replace("\"","\'")); cboemployee3.Items.Add(drow["Name"].ToString().Replace("\"","\'")); } From this code how can i add key to the hash table
The other thing is, don't use 'Urgent' in the subject line.
God Bless, Jason
I am not perfect but I try to be better than those before me. So those who come after me will be better than I am.