Posts by Marco Antonio Quintal • 2,227 points
54 posts
-
2
votes2
answers107
viewsA: Duplicate Jquery event in ajax call
First, the ajax call of the already asynchronous jquery. You don’t need async: true in that code. Second, put the events in Jquery’s DOM Ready. with the code below: $(function() {…
-
6
votes1
answer67
viewsA: Theninclude of a List
I don’t know if I understand this correctly, but I think you’re looking for team members at the same appointment. Use .ThenInclude(p => p.Member) to make the Userteam and Member Join: var query =…
-
2
votes3
answers973
viewsA: Websocket - c# . NET
You can run the server on the console if you use Asp net core (including linux). The ideal is to write using the signaler (module npm) to make your life easier, allowing you to implement the web…
-
1
votes2
answers78
viewsA: WCF does not connect to Sqlserver when published on IIS
If you have put the correct connection string you may be having the connection blocked by the server firewall and will have to open the port in the firewall to access sqlserver. Follow the tutorial…
-
9
votes1
answer128
viewsA: Use of Dataannotations in DDD projects
I am validating if the email was filled in this case would need to do this validation again in the domain? A.:Yes, the validation you use in viewmodel is to be used for client validation (although…
-
1
votes2
answers108
viewsA: Create Database using Fluent Nhibernate
I wear it like this: private static FluentConfiguration Configure() { return Fluently.Configure() .ExposeConfiguration(x => { x.SetProperty("current_session_context_class", "web");…
-
1
votes1
answer46
viewsA: Error when simulating distinc in query with Linq and lambda Expression
To search all states that are associated with the city search in the city repository. Ex. ctxCidade.Where(...).Select(x => x.Estado).Distinct().ToList(); Send your City and State Entities. There…
-
1
votes1
answer32
viewsQ: How to use resource files in XAML (Xamarin) file
I’m trying to use resource aquifers in my Xamarin Forms project but I don’t know how to reference the file string. Ex: <Label Text="MyApp.Resources.MinhaString" />. Someone knows how to do?…
-
2
votes2
answers67
viewsA: Route c# redirecting to wrong action
use: routes.MapRoute( name: "Teste", url: "SelecionarCidades/{idUF}", defaults: new { controller = "Regioes", action = "SelectCidadesPorCodigoUF", idUF = UrlParameter.Optional } ); Check the order…
-
2
votes1
answer532
viewsA: How to get the hostname of the client using c#?
Use the command below: Request.UserHostName But in some cases it doesn’t work. I don’t know if because of the browser or the network infrastructure (e.g. Load balance)…
-
7
votes3
answers828
viewsA: Separate typed words within an input
Try the code below. Tested on fiddle. I tried to make it more like your code but I can reduce it to 2 lines; Copy input code as well. <input type="text" id="fullname" name="fullname"…
-
3
votes2
answers695
viewsA: How to replicate master update for branches on Team Foundation Server?
There is. Use the Merge production command for branches. This article helps you organize your branches. http://nvie.com/posts/a-successful-git-branching-model/…
-
2
votes1
answer45
viewsA: Write a default value within a given cell in C#
Use the Open XML library to set value in cells. See in https://msdn.microsoft.com/pt-br/library/office/hh298534.aspx how to do.…
-
0
votes2
answers860
viewsA: How to install Assembly Microsoft.ReportViewer.Processingobjectmodel 12.0.0.0 in GAC?
Install Runtime available for download on https://www.microsoft.com/pt-br/download/details.aspx?id=45496 But connect in the correct version to be installed.…
-
6
votes1
answer70
viewsA: Check if multiple columns contain a value?
You can search as follows if the data is already materialized Example in https://dotnetfiddle.net/uSnmsJ: query = query.Where(x => new[] { x.Campo1, x.Campo2, x.Campo3}.Any(s =>…
-
0
votes1
answer27
viewsA: Kendo ui Numerictextboxfor - Set startup values
Use . Value(0.1) to set default value. For the range use . Min(0.1) and . Max(99.99) To configure the increment use . Step(0.1) you may need to configure the format . Format() and if you cannot with…
-
0
votes1
answer110
viewsA: Positioning of components in ASP.NET MVC
try the padding-top on the divTeste <!-- BOTAO PESQUISAR --> <div class="form-group"> <div class="col-md-2" id="divTeste" style="padding-top:20px;">…
-
1
votes1
answer394
viewsA: How to send parameter to Actionresult?
use Redirecttoaction by passing the parameters. return RedirectToAction("BPAC", new { pUsuario = "admin", pSenha = "xpto" }); and put the parameters in the action public ActionResult BPAC(string…
asp.net-mvcanswered Marco Antonio Quintal 2,227 -
12
votes1
answer4713
viewsA: What’s the practical difference between a git merge and a git pull?
git pull is the same thing as git fetch + git merge Example: git pull origin master is the same thing as: git fetch origin git merge origin/master Documentation in…
gitanswered Marco Antonio Quintal 2,227 -
1
votes1
answer880
viewsA: Generation of Excel in classic SP generating blank sheet
I found the cause of the problem and the solution. Recently installed some security updates that block the display of generated excel spreadsheets sent over the internet. Windows Update KB3115262…
-
1
votes1
answer880
viewsQ: Generation of Excel in classic SP generating blank sheet
I have a testeexcel.Asp file for excel generation: <%@ Language=VBScript %> <% Response.AddHeader "Content-Disposition", "attachment; filename=excelTest.xls" Response.ContentType =…
-
0
votes1
answer1544
viewsA: Submenu Bootstrap open left
Just add the pull-left class Ex:<li class="dropdown dropdown-submenu pull-left">
-
5
votes2
answers3404
viewsQ: What systems approval techniques are available?
What technique can I use to approve software? Is there some kind of form, standard, technique or procedure to validate if a system meets the requirements? Is there any standard document to formalize…
-
6
votes3
answers1454
viewsA: sending email by smtp
You must change the port (Smtpport) from 25 to 587. The Brazilian Internet Steering Committee (CGI.br) determined that as of January 1, 2013, all access providers and telephone companies no longer…
-
7
votes1
answer1294
viewsQ: Phonetic search on SQL server
I need to implement phonetic search for Portuguese (br). Does anyone have any phonetic search solution in SQL Server with c#? The search should search inside a string using the SOUNDEX function or a…
-
3
votes3
answers932
viewsA: Error comparing numbers and checking if they are equal
Change the read to readline with parse (you will read after you enter): Console.Write("Enter a number: "); Console.Write("Digite um número: "); int a = int.Parse(Console.ReadLine());…
-
0
votes2
answers137
viewsA: Getting registration id
Just spend like this: Html.ActionLink("Excluir", "Excluir", "Usuario", new {id = usuario.Id}, null)
-
4
votes2
answers1768
viewsA: Tag caption on google maps
I made a example that I believe is what you want. To change the label change the css, there you can change the size, border, opacity, etc. To change the location of the label change this part of…
-
11
votes1
answer3568
viewsA: Create Html/Css Phone Mask
You can use regular Expression in the tag <input> of Html5. It will not work as a mask but it will validate the phone in the format (99-99999999) or (99-999999999). Ex: <input type="text"…
-
1
votes2
answers456
viewsA: Mysql query with PHP brings duplicate results
In your consultation: A [SELECT SUM(pass_score_point) AS pass_score_point FROM user_quizzes] you have to group by some column with GROUP BY Ex. SELECT username, SUM(pass_score_point) AS…
-
3
votes3
answers438
viewsA: How to make a standalone script using Global.asa
If it were ASP.Net it would be easier to use Quartz.net but in classic Asp it is more complicated. I suggest to you three "gambiarras" that you can analyze and choose the one that best suits you.…
-
1
votes2
answers495
viewsA: How to call partial function after added via append
Create the function in partial without calling it and call after the append. $.ajax({ url: URL, success: function (data) { $("#DIV").append(data); funcaoDentroDaPartial(); }…
-
0
votes2
answers2653
viewsA: Update page in a Simple Way
Ideally you would use websockets for real-time response but if you want to update every minute you can use the javascript setInterval() function and configure to make an ajax call every minute and…
htmlanswered Marco Antonio Quintal 2,227 -
7
votes2
answers297
viewsQ: Best way to do an Action that does not return data
I am making an ajax call to change an object. The call does not need to return anything. Only http 200 (OK) or 500 (error) code. I’m using the following code in the action but I don’t know if it’s…
-
4
votes1
answer89
viewsA: Remove part of the time interval Kendo Timepicker
To do this you must use Configuration Dates. http://docs.telerik.com/kendo-ui/api/javascript/ui/timepicker#Configuration-Dates See the example below. Note: Do not worry about the date. Only with the…
-
1
votes1
answer417
viewsA: Limit Webservices access to two domains
Ping (ping servorx.ipesp.Gov) to these addresses and set the IIS ip Restriction to allow access only to those ips. If servers do not accept ping, find out their ip number. To configure the IIS see…
-
4
votes1
answer95
viewsA: I cannot remove an item copied from one list to another (drag and drop)
The problem is that when you add the items to the left div the UID (http://docs.telerik.com/kendo-ui/api/javascript/data/model#Fields-uid) the object is the same. I refer to the code: dataItem =…
-
1
votes3
answers414
viewsA: Validation using Remote in the "Parent" class
One way to do this is by searching directly with ADO.Net but I advise using a ORM. Are you working with any ORM? Nhibernate or EF. If you inform me that I try to show you how to do it. Send me your…
asp.net-mvc-5answered Marco Antonio Quintal 2,227 -
1
votes1
answer182
viewsA: I cannot remove an item from the drag and drop + sortable list
You should just pass the dataitem instead of dataItem.id to the remove method. Look at the datasource documentation at http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#methods-remove…
-
1
votes2
answers710
viewsA: Server Too Busy
This problem can be caused for many reasons and without being able to analyze several points is difficult but I suggest you place the attribute delayNotificationTimeout within the httpRuntime tag…
-
9
votes1
answer818
viewsA: What is the Dynamic Proxy generated by the Entity Framework?
The Dynamic proxy works similar to the nhibernate proxy, it is an entity proxy (POCO class). It is a class that overrides the entity’s virtual properties to be able to load. Which comes down to…
-
6
votes1
answer238
viewsA: Remote validation preventing data editing
Has to pass the id even otherwise you won’t be able to change the object. It will look something like this: public JsonResult validaEmail(string email, int id) { return Json(!db.Usuarios.Any(u =>…
-
2
votes1
answer1692
viewsA: Dataannotation: How to validate "e-mail" property, check whether or not it exists in the database, with attribute other than in the client and yes in the Server
In order for the Asp net mvc to validate the client I use a System.ComponentModel.Dataannotations.Emailaddressattribute attribute above the email field. So mvc already creates validation in the…
-
2
votes2
answers1026
viewsA: Move image (Picturebox) in form
If the image is above the picFundo, before calling the Thred.Sleep give a Refresh() in the background. Look at the code below: private void button1_Click(object sender, EventArgs e) { int…
-
3
votes4
answers2080
viewsA: How to capture elements in a json structure using javascript
I have made an attached . html file with what I think you want to do. Please check if this is it. Follow the html code below. Just copy, save as html and test in your browser. <script…
-
4
votes1
answer142
viewsA: Graphic Effects in Javascript Validation
For the validations highlighted in the green box I suggest you use Jquery validation (look at the demos in http://jqueryvalidation.org/files/demo/) or bootstrap http://getbootstrap.com/ For the red…
-
3
votes2
answers825
viewsA: XML/C# - How to create tags containing other tags within it
You must use the class Xdocument Sort of like this to create the sublevels: new XElement("fdv", new XElement("vendedor", "V001"), new XElement("produto", new XElement("codigoImport", "000083"), new…
-
2
votes1
answer787
viewsA: HTML Tags for Razor Engine (Asp.net mvc C#)
In order for the name and id to be overwritten you must use Textboxfor instead. Look at the example below (I included the class attribute as well): @Html.Textboxfor(model => model. Name, new {…
-
1
votes1
answer2135
viewsA: How to show a notification on the screen without affecting the active application
I didn’t understand your question very well but it seems to me that you are developing a windows form application. You could make a notification of those that appear on the taskbar with the code…
c#answered Marco Antonio Quintal 2,227 -
3
votes1
answer577
viewsA: For external or internal HTML performance (Bootstrap-Modal)
If you are going to pay for data that is transferred I suggest you do the following: Packaging and minification of css files Packaging and minification of js files Avoid inline css. always use as a…