Posts by FBatista • 324 points
9 posts
-
3
votes2
answers7642
viewsA: How to store information from a SELECT in variables
You have to improve your code, if you have the product code, there is no need to use like, and it makes the command much slower, you may not feel with a small test base, but when you grow up, it…
-
0
votes3
answers617
viewsA: Move image to another form by clicking the c# button (Visual Studio)
Your code is missing to call the form: private void button1_Click(object sender, EventArgs e) { Cadastro cadObj = new Cadastro(Convert.ToString(horas), txt_placa.Text, txt_cor.Text,…
-
1
votes1
answer189
viewsA: LINQ to SQL - Exception when giving sum() in a query that contains another subquery using LINQ
It is the database that does not accept this type of command even, if you write a select giving sum in a subquery, will give this message. You have to write the different query, I would do a group…
-
5
votes1
answer325
viewsA: How to call a View by passing parameters through json
You are not treating the return of the Ajax call. You have to deal with Success, take the result and insert somewhere. $.ajax({ url: url, type: "GET", success: function (result) {…
-
1
votes1
answer218
viewsA: Wait with Alertdialog()
Blocking the Main Thread is not recommended to wait for the Dialog, so you need to provide Handler for the Dialog itself to handle, so when the user confirms the action in the Dialog, this, will…
-
0
votes2
answers1736
viewsA: Partial View does not load Javascript - Asp.Net MVC
If you do it the way below, it works, but you don’t need to put the script in partial, if you’re calling it ajax, then you can call the methods by callback "complete:". <script> $(function ()…
-
2
votes2
answers996
viewsA: Metodo Json - Return
The problem there is that you are dealing with the return where you should deal with the request error, the way below works, also you do not need to parse for Json, jquery already returns ready.…
-
2
votes1
answer1684
viewsA: Making Codefirst Error in Enityframework
The configSections TAG is in the wrong place, it should be unique and be the first in the settings file, IE, have to move it to before the connectionStrings.
-
1
votes1
answer565
viewsA: Working with view in context in Entity Framework 6
You can disable automatic database change, with the following code in your context class constructor: Database.Setinitializer(null); This way, he will no longer try to create the table, but then you…