Posts by João Ignácio • 115 points
14 posts
-
0
votes1
answer68
viewsQ: Possibility to delete commit
I gave a commit but using a different version of the visual studio than the one the project was made, so there will be problems in publishing. I wonder if there’s a way I can delete this commit, and…
-
0
votes1
answer35
viewsQ: Capture checkboxes marked in a View
I’m listing my objects through a ViewBag sent to the View, and for each item there is a checkbox, and for each contract there is an Id: @foreach (var item in ViewBag.Contratos) { <tr>…
-
0
votes2
answers68
viewsA: Doubts about HTML and CSS
You can include your image tag within a hyperlink tag, as in the example below: <a><img /><a/>
-
0
votes1
answer69
viewsA: Calling a view in a subfolder
You can do it like this: return View("~/MinhaSubpasta/MyView.cshtml");
asp.net-mvcanswered João Ignácio 115 -
0
votes4
answers474
viewsA: Grab part of a string
I did so with regex: string campo = campo_texto.Text; string[] nome = Regex.Split(campo, ",");
-
-2
votes4
answers474
viewsQ: Grab part of a string
How do I get just up to the , of the following string: Ninguem ninguem, todos Expected result: Ninguem ninguem
-
1
votes2
answers499
viewsQ: Sql server skipping record id
After changing an application record, the next record I entered in the table skipped 1000 increments in id. id’s 2 3 4 5 6 7 8 9 1015 1016
-
2
votes1
answer85
viewsA: Subconsulta SQL
I ended up doing so: select * from tab_tce tce left join SEC_VAGA_ESTUDANTE sec on tce.idtce = sec.TCE_ID where YEAR(dt_inicial) = 2018 and idempresa = 2493 and sec.TCE_ID is null…
-
-1
votes1
answer85
viewsQ: Subconsulta SQL
I’m doing the consultation below: select idtce from tab_tce where idempresa = 2493 and YEAR(dt_inicial) = 2018 and idtce not in( select TCE_ID from SEC_VAGA_ESTUDANTE ) But returns this error: Msg…
-
0
votes1
answer27
viewsQ: Date field with wrong value
I have the date fields: @Html.EditorFor(model => model.DataInicio, new { htmlAttributes = new { @class = "form-control input-sm", @placeholder = "DD/MM/AAAA hh:mm" } }) @Html.EditorFor(model…
-
1
votes2
answers517
viewsQ: Pass parameters through the url
I’m trying to pass a parameter of my view to my controller by the url and I’m not getting it, as you can see in the code below I’m using viewbag, I don’t know if it’s an error on the route or…
-
-1
votes1
answer36
viewsQ: Instance error
I’m getting the following error: Referência de objeto não definida para uma instância de um objeto. The line generating the error is as follows: var _TceView =…
-
3
votes1
answer291
viewsQ: What’s the Context class for?
I am developing a system in ASP.NET MVC with mapping using the Entity Framework, when observing some patterns I see a lot the use of the class Context, what it’s for and what it should contain…
-
1
votes1
answer48
viewsQ: Mapping with Entity Framework
Good afternoon, when analyzing a code I see in the mapping the following line: this.HasKey(t => t.IdEstudante); I understand what you do in practice but not theoretically, refers to the object…