I am retrieving the credit card type from Database and have to show what credit card type the merchant have used, in the dropdowm. The dropdown has 4 types like Master, Visa, American Express and Discover along with select.
I retrieve it well, but I am not sure how to bind it such that it has all the 4 types along with select but should show the creditcard that has been used.
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.
Please help me out! Thank you!