我從數據庫檢索信用卡類型,並且必須在下拉列表中顯示商戶使用的信用卡類型。下拉菜單包括Master,Visa,American Express和Discover等4種類型以及select。顯示選定的下拉列表
我檢索得很好,但我不確定如何綁定它,使其具有所有4種類型以及select,但應顯示已使用的信用卡。
if (cardtype == 1)
{
ddCreditCardType.SelectedValue = ((int)CommonHelper.CCType.Master).ToString();
}
((int)CommonHelper.CCType.Master).ToString();
//This part gets the type of card used but does not put in the ddCreditCardType.
請幫幫我!謝謝!
你們都只是真棒!我非常感謝你們。非常感謝! – Ram 2010-10-21 18:35:23