Posts by AbnoanMuniz • 181 points
13 posts
-
-2
votes2
answers2215
viewsA: Regular expression to find numbers in between words
With this regex, you can recover these values through the Groups property. \p{L}+:\s*(?<Agencia>\d{4})\s*\p{L}+\:\s*(?<Conta>\d{5}\-\d+)
-
0
votes2
answers26
viewsA: Hide in an Actionlink, is it possible?
I managed to sort it out like this: First, I put the ID in the RAZOR: <td> @Html.ActionLink("Cadastrar site","MontarFancyCadastrarSite", "ItemOS", new {ChaveOS = Model.ChaveOS }, new { @class…
-
1
votes2
answers26
viewsQ: Hide in an Actionlink, is it possible?
I’d like to depending on my condition ActionLink was visible or not. Razor: <td> @Html.ActionLink("Cadastrar site","MontarFancyCadastrarSite", "ItemOS", new {ChaveOS = Model.ChaveOS }, new {…
-
2
votes1
answer42
viewsQ: Is it possible to see the Entity execution order?
So, is it possible for me to look at the execution order of the Querys that the Entity Framework mount? My problem is that it is trying to make a deletion in the wrong order, even after I make the…
entity-frameworkasked AbnoanMuniz 181 -
1
votes3
answers712
viewsA: Compare string to Enum, inside the lambda?
I was able to solve it this way : I created a method to find the string passed on screen on my Enum, if it was null, return to categorie1 by default : public CategorizacaoRamaisEnum…
-
1
votes3
answers712
viewsQ: Compare string to Enum, inside the lambda?
the problem is: I have a dropdownlist loaded from an Enum, which can come with the null value of the screen. listaItensSolicitados = os.Site == null ? this.itemSolicitadoService.Consultar(o =>…
-
1
votes0
answers46
viewsQ: How to check if several files are different from TFS?
My Center is, by a drop in the TFS server, when it was restored, my whole solution was "checked" for my user, I would like to know if there is any way to check or list only the checked files for my…
-
0
votes1
answer48
viewsQ: Is it possible to two Ubmit a button?
Possible, within one click the call of two Ubmit? Here’s my problem, I need inside a button, to be called two Actionresult in sequence. Follow what I’ve done so far:…
-
1
votes1
answer1834
viewsQ: Add elements to an array in Matlab
Basically, I need to enter a single for, add elements to an array or list (I don’t know if it’s in the language) and then divide the values by the amount of interactions. Very simple, if it were in…
matlabasked AbnoanMuniz 181 -
0
votes2
answers812
viewsA: How to count columns of an Httppostedfilebase txt file?
Based on @Renan’s reply I came to this conclusion that Sana my problem : public bool ValidarArquivo(ArquivoImportacaoModel model) { //List<string> conteudoArquivo = new List<string>();…
-
4
votes2
answers812
viewsQ: How to count columns of an Httppostedfilebase txt file?
In the code below, it would work perfectly if I had access to path of the file uploaded on the client side, however, it doesn’t work that way. So I’d like to ask you guys to suggest another way to…
-
4
votes1
answer851
viewsQ: How to get the path of a file (Httppostedfilebase)?
I would like to get the path(path) from where my file is coming from. Model: [Required(ErrorMessage = "Selecione o arquivo a ser importado.")] [Display(Name = "Arquivo ")] public HttpPostedFileBase…
-
3
votes1
answer152
viewsQ: Catch max value inside a while that is inside a cursor
My doubt is the following: I have my cursor for the interaction line by line and within it I have one while for horizontal interaction. I am trying to popular a table whose PK does not have…