Sep 27, 2009, 3:47 AM
[CLOSED] ComboBox set selected item value
Hi,
I have a ComboBox:
I have a ComboBox:
<ext:ComboBox ID="ComboBox1" runat="server">
<Items>
<ext:ListItem Value="aa\taa" Text="aa\taa" />
<ext:ListItem Value="bb\tbb" Text="bb\tbb" />
<ext:ListItem Value="cc\tcc" Text="cc\tcc" />
</Items>
</ext:ComboBox>
and I set SeletedItem.Value in Page_Load method:protected void Page_Load(object sender, EventArgs e)
{
string a = "cc\tcc";
ComboBox1.SelectedItem.Value = a;
}
and I got a wrong result: cc + Tab key + cc . I want to get "cc\tcc" in result. How can I do? Thanks!
Last edited by Daniil; Nov 18, 2011 at 9:22 AM.
Reason: Please use [CODE] tags