Hi All,
I'm using html dropdown to list all employees name in a aspx page
Since there are lot of employees, end user able to see only one item in the dropdown (until he clicks dropdown).. I would like to customize a dropdown such a way that when an end user visits the page, it should display list of employee name and/or empcode , so that he can see more than one items at a time without clicking dropdown(say something like grid or listview). (onchange event of dropdown im calling some function, so when he clicks on any one item, i need to call onchange event) OR Any other better solution will do..
Thanks
Lokesh
|
| Author: D.Jeya kumar(JK) 29 Aug 2008 | Member Level: Diamond | Rating: Points: 3 |
Hi,
Dropdown box will not show more than one item at a time. we need to go for list box(asp.net).because dropdown box will not have any such options available to shown more then one values.
Regards JK
|
| Author: Legend 29 Aug 2008 | Member Level: Silver | Rating: Points: 6 |
you can retrieve the Employee name and Employee code (fields) from database to your drop down list, If you want code i will sent to you.
DataSet ds = sd.GetDataset("select * from Helpdesk_Location", "Helpdesk_Location", (SqlConnection)Session["con"]);
DropDownList1.DataTextField = "LocationName"; DropDownList1.DataValueField = "LocationId";
DropDownList1.DataSource = ds.Tables[0]; DropDownList1.DataBind();
|
| Author: Gitolekha Ray 29 Aug 2008 | Member Level: Silver | Rating: Points: 3 |
Dropdown will have only one selectedindex as it will show only one item at a time. Since you want the user to see more than one item at a time you can opt for a listbox.
|