Posts by alessandre martins • 998 points
69 posts
-
5
votes5
answers29254
viewsQ: How to convert date to dd/MM/yyyy format?
After I published my app, I started to receive the dates in the American format like this:9/14/2016 12:00:00 AM How to format to dd/MM/yyyy? I tried to convert.ToDateTime() more does not work.…
-
1
votes1
answer53
viewsQ: doubt with Entity and limit
I need to retrieve the last 100 records from the bank, I’m using the code below, but it returns the first 100: dynamic data = null; try { data = limit == 0 ? (from p in contexto.Set<TEntity>()…
-
1
votes2
answers112
viewsA: Does the back-end language change the way an application is developed?
I don’t think you should change, no. You could build your back-end using Rest, so no matter what language you would use in the front-end, they would all consume your back-end using ajax requests,…
-
0
votes0
answers53
viewsQ: doubt with tag select
I have the following tag select: <!--select--> <div class="uk-form-row"> <div class="uk-grid"> <div class="uk-width-medium-1-2"> <div class="uk-input-group"> <span…
-
0
votes1
answer35
viewsQ: problem with Submit
I have the following code on my form: <div class="uk-grid"> <div class="uk-width-1-1"> <button type="submit" class="md-btn md-btn-primary" ng-submit="frm.$valid &&…
-
1
votes1
answer117
viewsQ: doubts with if Else in java script
I’m using Angularjs and I have this method $scope.login = function (email, usuario, senha) { $http.post("/Login/login", { email: email, usuario: usuario, senha: senha }) .success(function (data) {…
-
1
votes2
answers353
viewsQ: Entity Framework search as case sensitive
People I am using Entity Framework 6, Mysql, ASP.NET MVC. The problem is this: when I do a search through the form (my search view) EF is case sensitive. When I do the query directly in Mysql, using…
-
1
votes1
answer106
viewsQ: Doubt with angular and checkbox
I have a form with some inputs and some checkbox, when I do the search in the database is returned Json, and input fields are filled in but checkbox are not marked although I have declared the…
-
1
votes3
answers310
viewsA: doubt with ajax and angular
I thank my colleagues for their answers. I found in this post what I’ve been looking for for for a while: various parameters So my angular method was like this: $scope.Salvar = function (checklist)…
-
0
votes2
answers1475
viewsA: Send 2 Json objects to $http in Angularjs
I thank my colleagues for their answers. I found in this post what I’ve been looking for for for a while: insert link description here So my angular method was like this: $scope.Salvar = function…
-
0
votes2
answers1475
viewsQ: Send 2 Json objects to $http in Angularjs
I’m using C#/EF/Angular, in my backend I have the following method, which waits for 02 parameters: public dynamic save(Entidades.CheckList json, Entidades.CheckList json1) { master = new…
-
0
votes1
answer814
viewsQ: Delete Cascade with Entity framework
I have the following situation: my database is Mysql, when I try to delete a record directly in the database, from this message: Cannot delete or update a parent row: a foreign key constraint fails…
-
0
votes2
answers1163
viewsQ: Error calling another screen
I’m trying to call a second screen in Android Studio, but this giving error. This is the main class: package br.com.olamundo.parametros; import android.content.Intent; import android.os.Bundle;…
-
0
votes0
answers183
viewsQ: doubt with passwords
I am creating an application using MVC. On the server side, I am using c#/Asp.net MVC, on the client side I am using html/angular. On the server I have a method called Authenticate, which receives…
-
3
votes1
answer716
viewsQ: How to get the values of a table?
My doubt is very basic: I have a table, need to store in a variable all values of the line that was clicked, I am trying it with this method below but the result is "Undefined". What could be wrong…
-
0
votes0
answers77
viewsQ: Recover json through a url using ajax
I have this method that searches the data that is in a txt file and populates a table: $(document).ready(function () { $('#example').DataTable({ "ajax": "objects.txt", "columns": [ { "data": "name"…
-
1
votes1
answer3090
viewsQ: doubts with Angularjs, input and onblur() method
How do an input call a function? The field is a zip code, I want when the user leaves this field to be called the function getCep(). I know that in the JavaScript has the function onblur, but with…
angularjsasked alessandre martins 998 -
2
votes3
answers310
viewsQ: doubt with ajax and angular
I have my back-end, in my controller I have a way salvarBairro(string dados) I’m using angular, this guy here calls my way to salvaBairro from the back $scope.AddBairro = function (bairro) {…
-
2
votes2
answers301
viewsQ: Ajax request data with Angularjs is not getting to the action method
I know this is very basic, but I’m starting now. I’m creating a neighborhood register, using Angularjs, my back-end is in C# with ASP.NET MVC. My method is called by view, but does not receive JSON:…