Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
ASP.NET
asp:DropDownList ID="DropDownList1" runat="server">
            <asp:ListItem Value="0">Class</asp:ListItem>
            List<String>Sql.EmpoyerClasses= EmployerClassName</String>()
            ViewBag EmployerClasses= EmployerClassNameList(EmployerClasses);


What I have tried:

I have tried to add data in a drop down list of a web form in visual studio 2022
Posted
Updated 25-Jan-24 22:25pm
v2
Comments
Richard Deeming 30-Jan-24 4:23am    
Without the full error message, nobody can help you. So far, all you've given us is a partial extract of the generic "something went wrong" message, and some unexplained excerpts of your code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900