Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 1st, 2005, 01:25 AM
Authorized User
 
Join Date: Nov 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default asp:dropdownlist question

does any one know how to change the itemselected in that control via coding

__________________
For question asking, please made sure that your question is as similar as possible while providing enought level of details!
Since not all peoples, like to read large amounts of text just for reading or requirement and waste the answer time to read your text
 
Old April 1st, 2005, 01:49 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Please restate your question, it is not clear what you want to do.

 
Old April 1st, 2005, 03:38 AM
Authorized User
 
Join Date: Nov 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I would like to change selected item in dropdownlist in code.

e.g.

a page with a dropdownlist contain a list of month name, I would like to set the current month as selected item

 
Old April 1st, 2005, 06:50 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Use dropdownlist SelectedValue or SelectedIndex property to set the item selected.






Similar Threads
Thread Thread Starter Forum Replies Last Post
about DropDownList question jason_lai ASP.NET 2.0 Basics 3 June 5th, 2007 08:40 PM
HELP!!! (DropdownList in GridView question) Aaron Edwards ASP.NET 2.0 Basics 10 June 25th, 2006 05:08 AM
DropDownList Question khng Classic ASP Components 3 April 1st, 2005 12:56 AM
hi, some question bout condition of Dropdownlist.. life_s Ng ASP.NET 1.0 and 1.1 Basics 3 September 26th, 2003 10:26 PM
dropdownlist question... pls help life_s Ng ASP.NET 1.0 and 1.1 Basics 2 September 26th, 2003 05:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.