selecting dropdownlist item in IronPython

Posted by Meli on Stack Overflow See other posts from Stack Overflow or by Meli
Published on 2010-05-28T16:13:03Z Indexed on 2010/05/29 2:32 UTC
Read the original article Hit count: 283

Filed under:
|

I want to select a particular item in a dropdownlist by value, in asp.net using IronPython. I found I can do it like this

listItem = ddl.Items.FindByValue(x)
if listItem != None: listItem.Selected = True 

But I want to do it in one line

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about ironpython