Posts by Luidy • 61 points
6 posts
-
1
votes2
answers336
viewsA: I’m having difficulty returning my ID using nextval, to later do the Insert in my table
Instead of passing the id as a parameter you could put directly into your Insert statement. cmd.CommandText = "INSERT INTO USUARIOS"+ "([ID], [MATRICULA], [NOME], [SENHA], [NIVEL]),[MALETA],[EMAIL])…
-
1
votes3
answers230
viewsA: SQL Query export for excel
I believe you need to split the filters by parentheses and AND. var query = "SELECT * FROM indisponibilidades WHERE estadoIndisponibilidade = 'ABERTO' OR (dataInicio = '" + dataPedido + "' AND…
-
2
votes3
answers647
viewsA: Dynamically load from the bank and mount a treeview in cshtml I’m not getting
Probably your logic for closing html tags is not correct. I put comments in the code below showing that you need to put control points to open and close html tags otherwise it will not be rendered…
-
1
votes1
answer393
viewsA: Injection of dependency with Ninject
Rodrigo, At first you need to bind your Isessionfactory. Here is a stackoverflow thread in English containing the bind.…
-
0
votes2
answers4814
viewsA: Foreach within a cshtml(view) from a controller
Probably the content of your Viewbag is coming null, will need to do a check before. You also need to tell your Viewbag type to perform the iteration and access the object properties. @foreach (var…
-
1
votes1
answer615
viewsA: Take Model in View with values from the database
From what I understand you want to use your class Montaarvoreacao being the Model of your View. The Tree action of your controller is returning a Jsonresult. When using a Json return to a View you…