Hello! I have a problem with making a selectlist display 2 values in textfield. I have the following SelectList that is stored in a viewbag:
ViewBag.Account = new SelectList(new AccountBusiness().GetList<Account>(Util.AuxiliaryMethods.BMPerRequestInstance).ToList(), "AccountId", "AccountNumber");
On the DOM it displays the AccountNumber in the Option text and the AccountId in its value. On the screen it displays as follows:
IneedittodisplayinsteadofjusttheAccountNumber,alsodisplayanotherfield,whichistheDescription,soIwouldgettheAccountNumber+Description,somethinglike"15252 - Standart", and in value it would still return the Id How can I make SelectList get two parameters?