DropDownList.FindByValue() bug?

B

Bill Gauvey

I have a dropdown list with several items, one item has the value of \r\n.
When I try to find the value it fails, the string being passed to it is
comming out of a Hashtable. Other items work fine.

Hashtable m_Layout = GetLayout(layoutID);

....

string szDelimiter = (string) m_Layout[ "layoutRecordDelimiter" ];

ListItem itm = ddlRecordDelimiter.Items.FindByValue( szDelimiter );

itm.Selected = true;


When the layout record delimiter is \r\n it will fail
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top