C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Customize Dropdown


Posted Date: 28 Aug 2008      Total Responses: 3

Posted By: Lokesh       Member Level: Silver     Points: 1


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




Responses

Author: D.Jeya kumar(JK)    29 Aug 2008Member Level: DiamondRating:     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 2008Member Level: SilverRating:     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 2008Member Level: SilverRating:     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.


Post Reply
You must Sign In to post a response.
Next : resize the flash file (.swf)
Previous : View State
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use