APS.NET MVC - DB data split

-1

I need to do a function in VB which allows you to list the data of a field in the database in a DropDown.

Ihavetolistdatafromthe'EixoX'field(fromthefigureabove)inDropDown.Thequestionis:IneedtolistDBdatafromagivenID,forexampleID=1,whereIhavetosplitby','thanitisinthe'EixoX'field.

SofarI'vebeenabletodothefollowing:

Asyoucansee,itlistsallthelinesinthe'EixoX'field.

HowcanImakeitlistonlythefieldfromagivenID,havingtosplititscontentsanddisplayeachoneindividually?Forexample,forID=1wouldhavetodisplaythefollowing:

    
asked by anonymous 30.07.2018 / 12:54

1 answer

0

Make the select to retrieve by id, and do the split of the return of the AxisX column, for example:

 eixoX = "a1, a2, a3"
 Dim eixoSValores As String() = eixoX.Split(New Char() {","c})
    
30.07.2018 / 13:06