Click here to Skip to main content
16,020,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
While developing ASP.NET 2.0 web application you want to display a list of parts in a master/detail scenario where the user can select a part number using a list that takes a minimum amount of space on the Web page. When the part is selected, a DetailsView control displays all the information about the part and allows the user to edit the part. Which Web control is the best choice to display the part number list
for this scenario?
Posted
Updated 20-Aug-12 3:52am
v2
Comments
ZurdoDev 20-Aug-12 10:48am    
If you want something take a little bit of space a drop down list will work fine. However, if you have a lot of part numbers I would recommend using an autocomplete jquery plugin so that the only room on the page is a textbox.
Vani Kulkarni 21-Aug-12 4:48am    
Agreed with Ryan. Go with either dropdown or autocomplete textbox.
Sergey Alexandrovich Kryukov 20-Aug-12 17:03pm    
Why "you"? I don't want to display anything like that, God forbid... :-)
--SA

1 solution

If you want to make your page lighter, I would rather suggest to use dropdown.
Fill the dropdown on page load.

One problem is that if user change the items of the drop down very quickly through down arrow, the page will load and the selected item of the drop down vanishes as the postback occurs.

To cater this situation,
Use Ajax to load the detail items. In that case, your selected item will not lost.
Moreover, you page will not be refreshed.

Hope this helps.
cheers
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900