Posts by rodrigogq • 1,749 points
45 posts
-
1
votes1
answer51
viewsA: C# - Name of the instance property in a Datagridview
This answer I ended up pasting from the same English OS, from the following post: https://stackoverflow.com/a/10567944/276960 In general, it seems that Datagridview has nothing ready to do this. But…
-
4
votes1
answer183
views -
2
votes1
answer521
viewsA: Error using Javascript window.history.back()
Yes it is true, the browser will always confirm when you are returning to a page that was the result of a POST. It may not be your case on this page, but it could be a shopping page and then would…
-
2
votes1
answer54
viewsA: Launch Modal Window
What must be happening is the fact that the header() is a head instruction for the browser, and it ends up ignoring alert(). You could try redirecting by Javascript by writing this text: <SCRIPT…
-
3
votes2
answers207
viewsA: Why do you declare yourself PUBLIC and xmlns using W3.org site?
I believe you are looking at HTML4 pages. HTML5 pages have already changed their pattern. The idea of HTML4 was to maintain high compatibility with the XML format. In this format, things can be very…
-
1
votes2
answers981
views -
3
votes1
answer955
viewsA: Synchronize databases via Webservice C# Asp
I think you need to be very careful with architecture. A lot is possible, but not everything is viable or interesting for you. Feasibility How much information will you send to an external system?…
-
1
votes3
answers14141
viewsA: Fix first row table
Dude I think it does. Take a look at this jsfiddle: http://jsfiddle.net/dPixie/byB9d/3/ You need to use the tag thead for that reason: html, body{ margin:0; padding:0; height:100%; } section {…
-
2
votes1
answer933
viewsA: Synchronize Threads
Given the problem you’re facing, I don’t think it’s interesting that you create Threads that way. You’d be dealing with unnecessary competition. You have entries, jobs that need to be executed…
-
6
votes1
answer935
viewsA: Modular Programming
Pablo, I’ve been working with this for a long time already using C# in an interdependent system! I think that even though it’s interdependent, we can generally modularize the system. We have our own…
-
2
votes2
answers10106
viewsA: Change SQL SERVER SA Password with Windows Admin Account
Dude, I already did it once. I followed the detailed steps in this article: http://community.spiceworks.com/how_to/show/22044-recover-sa-password-on-microsoft-sql-server In short, the idea is to…
-
12
votes3
answers11626
viewsA: What’s the use of the reserved word "Yield"?
The keyword yield added to the language to help build iterators of the type IEnumerable. In other words, there is a "hidden" state machine there that "remembers" the last position you were in within…
-
5
votes1
answer6038
viewsA: Implications of using Inner Join and left Join in a single select
There is a logical order to follow. For your model, it is possible to change the order of your joins without any problem. This is because they are all based on a main table that will always be…
-
9
votes4
answers7973
views -
27
votes3
answers2113
viewsA: Why use Git for individual development?
Well, I’m going to tell you a little bit about what convinces me that Git has definitely come to be among the best (if not the best) forms of versioning - and that includes individual development.…
-
1
votes1
answer196
viewsA: Converting a. NET algorithm to JS
If you are using IE or some other browsers that do not correctly implement it, this expression will not work: caracter = expressao[i]; // nem sempre funciona The result of this expression in IE is…
-
2
votes1
answer827
viewsA: Button/function to add inputs dynamically by deleting values from previously added inputs
There are some things wrong with your code. Follows the correction: var contador = 1; function addproduto() { contador++; var _div = document.createElement("div"); var _nome =…
-
2
votes4
answers359
viewsA: margin:auto; how to apply in this case
I’ve made several changes: Html: <div class="p_sects"> <div class="icon-p_a1"></div> <div class="icon-p_a2"></div> <div class="icon-p_a3"></div>…
-
1
votes3
answers563
viewsA: Problems with LEFT JOIN
Try to do the following (the commented part is where I changed only): SELECT OrdensProducao.NumOrdem AS 'OP' ,OrdensProducao.NomeCliente AS 'Cliente' ,OrdensProducao.Descricao AS 'Descrição'…
-
1
votes1
answer89
viewsA: Access memory region that has already been displaced
Yan, as he had suggested in the comments above, some people in the OS found a similar problem and suggested that it was an external problem. I don’t know if this will help you but here are some…
-
1
votes1
answer457
viewsA: Insert sub-total per page into a RDLC Report (.NET) table
You need to add new groups to your tablix, in the Detail section and within the Row Groups of your table. You can create as many clusters as you want. Hence you can define the partial sums and…
-
3
votes1
answer257
viewsA: Inheritance with Repository Pattern
Pablo, do you intend to save this to a database? I don’t know much about this Pattern, but looking at the way the entities were created, it seems to me to be a bit strange. The way it’s being done,…
-
2
votes2
answers2442
viewsA: How to read and open files from a byte column in SQL Server?
Get the byte array and pass to one MemoryStream in the builder; Create your FileStream with the desired file name. I assume you are saving at least the original file extension (the name is optional,…
-
1
votes3
answers389
viewsA: How to find a string in a Crystal Reports file in windows
Use the Notepad search++. Amazingly enough, the search for Windows 7 onwards is no longer a simple search that looks inside the files. To do this you need to pass parameters, it is very bad. Forget…
-
0
votes1
answer256
viewsA: Automatically list products from different stores
Depends on what kind of information the stores give you. There is some information that is unique from product to product, regardless of where you sell it. This type of classification is very common…
-
1
votes3
answers3234
viewsA: Make an UPDATE with the value of another database
If your version of SQL Server is higher than 2008, you have access to the clause MERGE. When you want to keep information synchronized between two tables (and 2 databases), it is excellent. With it,…
-
0
votes3
answers221
viewsA: How I dynamically put and take out a href
There are many ways. One of them, without changing the code much, is to add a one runat="server" and a id='nome'. <a href="/UpLoads/<%# Eval("DsPathDocumento")%>" runat="server"…
-
2
votes1
answer360
viewsA: How do I store values as objects in Web Forms?
You need to understand the life cycle of a page in Web Forms (see this link). Every time the browser asks you to load a page, ASP.NET creates an instance of its class, does the operation…
-
4
votes4
answers1574
viewsA: Database and transaction control in value transactions
There are several approaches, it depends a lot on the scenario you are thinking of, the hardware/software investment and the speed you want to achieve. The transaction logging model you described is…
-
3
votes2
answers1770
viewsA: Sort a struct
If the idea is just to take the cities further north, south, east and west, can do so: int indNorte = 0; int indSul = 0; int indLeste = 0; int indOeste = 0; for(int i = 0; i < N; i++) {…
-
1
votes1
answer436
viewsA: Submit form with jQuery.Validation
If you’re using a javascript function, you’ve probably done something like: <form onsubmit="return validateForm()" method="post"> function validateForm() { // logica para validar formulario…
-
1
votes1
answer135
viewsA: Compare different columns
There is. The DataTable Microsoft has the facility to create objects of the type DataView. In other words, they are filters or "SELECTS" that you can do inside a Datatable. You can create 2 DataView…
-
1
votes1
answer56
views -
1
votes1
answer110
viewsA: Help in comparison of randomized variable
Felipe, I believe you are creating an electronic version of the famous game "Genius"! If this is the case, maybe the algorithm used in the solution is taking you a long way. When we talk about…
-
1
votes1
answer1459
viewsA: How to pick up an existing cookie via javascript
To make an AJAX jquery request, create a "checkAccess.js" file, or something like and put it in the include of your page. $(document).ready(function(){ $.get("http://www.seusite.com.br/pagina.asp",…
-
2
votes4
answers688
viewsA: Superclass can become subclass?
I think you’ve already found the solution. The best way, and a well-known practice of architecture, is the build copy. Something like: Versao versao = new Versao(); versao.setName("Versao");…
-
1
votes2
answers582
viewsA: How to create a function that returns the lowest expiration date between batches of a given product?
Logically you need to return this (and filter if necessary by parameters) or a record or table as below: DROP PROCEDURE IF EXISTS `ObterLoteMinimo`; CREATE PROCEDURE `ObterLoteMinimo`(IN…
-
5
votes5
answers22737
viewsA: How to turn the output of a command into a variable in CMD?
Two simple ways: aplicacaoOuComando arg0 arg1 > temp.txt set /p VAR=<temp.txt another: for /f %%i in ('aplicacaoOuComando arg0 arg1') do set VAR=%%i EDITION The command for /f is a parse of…
-
1
votes2
answers483
viewsA: Match content of two objects
I don’t know how you’re dealing with competition in your project, but it doesn’t seem to me to be the safest way the way you’re doing. If you’re working in a multi-user environment and multiple…
-
1
votes1
answer743
viewsA: OUTER APPLY does not work like INNER JOIN
Just to reinforce what Peter already answered, CROSS APPLY is very different from INNER JOIN. In simple terms, INNER JOIN is a mathematical operation, a Cartesian product of the information between…
-
2
votes1
answer537
viewsA: Chrome and background Fixed bug
I hope you’ve found another solution. On the English site, I tracked down someone who asked the same question. Instead of "fixing", he did a workaround using the property clip and the…
-
5
votes3
answers500
viewsA: Security key in Asp.net mvc
Eric, there’s a lot of confusion in the area of cryptography and security. I think even the suggestions were good, but I believe there could be serious flaws there. Getting the MAC doesn’t seem like…
-
1
votes1
answer98
viewsA: C# application does not load XML file when putting the application to start with Windows
If XML is in the same location as your executable, use the code: string caminho = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "\\arquivo.xml");
-
1
votes2
answers52
viewsA: Prevent the user from voting in the same Post
Try to recover the vote before displaying the like/dislike link on the screen. If you’ve already voted, display a link showing that you’ve already done it. Also, allow him to change his vote. Again…
-
0
votes2
answers1301
viewsA: How to Save and Recover All Sessions of a User
Following @Onosendai’s line, you could use code like this in your Global.asax: public void Application_OnStart() { Application["UsersOnline"] = 0; } public void Session_OnStart() {…