Posts by Marcello • 490 points
13 posts
-
14
votes3
answers3192
viewsQ: What is the difference between Full Text Search and LIKE?
I’ve heard a lot about the term Full Text Search (FTS) lately, and I’ve been told that I should use this instead of drafting the queries with LIKE. But how to use the Full Text Search? What are the…
-
1
votes3
answers345
viewsA: Dynamic search in c# and WPF
Good morning. I would make the screen only with the "value" and with the "fields" that should be used for the search. Something like the following: All "fields" selected by the user would be added…
-
1
votes3
answers83
viewsA: Why has the context changed?
Normal in situations like this is to declare a variable to store a reference to the object itself. For example: var Model = function() { var $this = this; // ... this.onLoadXhr = function() { if…
javascriptanswered Marcello 490 -
4
votes2
answers79
viewsA: Find 2 date attributes in a single element
Try this: $('*[data-belongs="2"][data-target="3"]'); Source: jQuery: Multiple attribute selector…
-
4
votes1
answer113
viewsA: Error, Loop when pressing ENTER with e.Keycode
The problem is that both Messagebox and Textbox are responding to the event. Try using Keydown instead of Keyup. private void txtEmgSearch_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode ==…
-
0
votes3
answers726
viewsA: How to identify a key in Textbox?
Using jQuery, regardless of browser, the code for "Enter" is 13. So, just test if the button pressed was 13, as follows: $(document).keypress(function(e) { if(e.which == 13) { alert('Você pressionou…
-
0
votes2
answers252
viewsA: How to make <script></script> not appear in the HTML file. Only the text appears inside Document.write
Javascript is a language that must be executed in the client, and so it is not possible to completely hide a javascript code. In this case, the recommended is to separate the javascript code from…
-
2
votes4
answers3803
viewsA: What is spaghetti code?
Spagheti code refers to code whose control flow is confused and interlaced like spaghetti. This way, each line of code can be referencing almost any variable anywhere and keeping the code becomes…
-
3
votes1
answer92
viewsA: How to add the BUILTIN Administrators group in SQL Server for Operating Systems that are not in English?
I managed to solve this problem as follows: For known groups, such as Administrators (Administrators) and Guests (Guests), it is possible to recover the name based on SID (Secutiry Identifier). A…
-
3
votes1
answer92
viewsQ: How to add the BUILTIN Administrators group in SQL Server for Operating Systems that are not in English?
During the installation of my application on a server, the following line is executed: using (var com = con.CreateCommand()) { com.CommandText = "CREATE LOGIN [BUILTIN\\Administrators] FROM…
-
1
votes3
answers9191
viewsA: What is a Software Artifact?
A software artifact can be summarized as any document or model generated during software development. For some people, a software package can also be considered an artifact. I personally always…
-
1
votes1
answer349
viewsA: Multi-user authentication with ASP.NET MVC and . NET 4.5
You can use names of cookies different logins for different logins. That way, one cookie will not overwrite the other. You can set the value of cookie in the Web.config file, changing the value of…
-
0
votes2
answers576
viewsA: Integration of two different applications in ASP.NET MVC
Hello. As the applications are already ready and running, I believe that the best thing to do would be to use Web API, creating a method in each application that would be called to insert a user.…