2011-02-16 6 views

答えて

39

サーバー側で価値を得たい場合は、これに従うことができます。

ddlsample.SelectedIndex = ddlsample.Items.IndexOf(ddlsample.Items.FindByValue("x")); // If you want to find text by value field. 
ddlsample.SelectedIndex = ddlsample.Items.IndexOf(ddlsample.Items.FindByText("x"));// If you want to find text by TextField. 
+3

ありがとう!それは私を助けた.... – Zoya

0

試してください。

ddlsample2.SelectedIndex = ddlsample.FindStringExact(ddlsample.Text);クライアント側またはサーバー側の

関連する問題