I'm trying to load fields from excel file and assigns each field to my database field ?
How can I generate each to field of excel a drop down list containing my database fields to let the user choose which field in his excel is what in my database ?
So it is kind of creating dynamic drop down list
I'm using vb.net/asp.net
In the application page, you can read the excel file and make a bind it to a grid/repeater etc.
Then get the list of fields from database table and bind it to a dropdownlist against each of excel field.
Here you need to generate the dropdownlist dynamically by code with unique id in ItemRowDataBound event.
And at the end, you can place a button which will save the combination selected in the grid.
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
Then get the list of fields from database table and bind it to a dropdownlist against each of excel field.
Here you need to generate the dropdownlist dynamically by code with unique id in ItemRowDataBound event.
And at the end, you can place a button which will save the combination selected in the grid.
Let me know if you have any difficulty.