skip to main | skip to sidebar

ASP.NET Tips

Tuesday, December 4, 2012

Select DropDownList programmatically


Set by Text:
 DDL.SelectedIndex = DDL.Items.IndexOf(DDL.Items.FindByText("PassedValue"));
Set by Value: 
DDL.SelectedIndex = DDL.Items.IndexOf(DDL.Items.FindByValue("PassedValue"));
Posted by ASP.NET tips at 7:51 PM No comments:
Labels: C#, DropDownList, index, select
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)


Cảm ơn đời mỗi sớm mai thức dậy
Ta có thêm ngày nữa để yêu thương


KAHLIL GIBRAN (1883-1931)


Blog Archive

  • ►  2024 (1)
    • ►  March (1)
  • ►  2023 (2)
    • ►  July (1)
    • ►  June (1)
  • ►  2020 (1)
    • ►  December (1)
  • ►  2019 (2)
    • ►  September (1)
    • ►  July (1)
  • ►  2017 (2)
    • ►  May (1)
    • ►  February (1)
  • ►  2015 (2)
    • ►  September (1)
    • ►  January (1)
  • ►  2014 (2)
    • ►  October (1)
    • ►  July (1)
  • ►  2013 (2)
    • ►  July (1)
    • ►  January (1)
  • ▼  2012 (5)
    • ▼  December (1)
      • Select DropDownList programmatically
    • ►  October (1)
    • ►  July (1)
    • ►  May (1)
    • ►  March (1)
  • ►  2011 (9)
    • ►  November (1)
    • ►  October (1)
    • ►  September (1)
    • ►  August (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (3)

About Me

My photo
ASP.NET tips
View my complete profile
 

Search This Blog