All Questions

1
answer

Postback in ASP net MVC 5 does not work after a JsonResult

Do a postback in jsonresult since I use a modal to delete in mvc 5 but it does not perform a postback .. [HttpGet] public JsonResult Eliminar(int id) { cargo carg = db.cargo.Where(x => x.idcargo == id).FirstOrDefault();...
asked on 29.03.2017 / 18:17
2
answers

Go through an ArrayList and show one by one

I am using a for to go through a list of objects, but it only shows me the last one, in the console if it shows me that it goes through all, but in the Imageview it only shows the last one. Code: if(!L.isEmpty()){ for (B...
asked on 14.04.2017 / 21:10
1
answer

MYSQL blocks the SELECT when executing an UPDATE in a trigger

This is the error I receive    SQLSTATE [HY000]: General error: 1442 Can not update table 'accounts_cobrate' in stored function / trigger because it is used by statement which invoked this stored function / trigger. If I use a static id i...
asked on 22.03.2017 / 15:19
1
answer

How can I hide a query string from the url?

I want to hide the query strings of the url, so I know if the url has the query and only get the value of the query. Let's say this is my url: http://miurl.com/?query=valor And I want it to be modified in this way: http://miurl.com/val...
asked on 09.03.2017 / 23:51
3
answers

Count rows in with a SQL Server subquery

I have the following query : SELECT DISTINCT NoEconomico ,count(NoEconomico) AS Totales FROM prm_FEMSA_IndicadoresTelemetria WHERE RPMEventos <> 0 AND AccountId = 9159 AND FechaInicio BETWEEN '2016-11-27' AND '...
asked on 22.03.2017 / 19:32
2
answers

Ajax query "undefined"

My query is as follows, my code is: $("#sPedido").change(function(){ var codigo_c=$("#sPedido").val(); $.post("traertabla.php", function(datos){ $("#midiv").html(datos); alert(datos.mensaje); }); }); The line:...
asked on 09.03.2017 / 01:06
2
answers

Retrieve accents in C #

I can not retrieve a text with a tilde in StringBuilder of c # The silly example would be this: System.Text.StringBuilder sbEx = new System.Text.StringBuilder(); sbEx.Append("<br />Hoy es día " + dia.ToShortDateString() + "."...
asked on 03.07.2017 / 12:06
2
answers

Is it possible to change the background color of a "Floating" Activity?

I need something similar to DialogFragment but with a full class, in other words, create a activity floating%. The procedure is as follows: In my MainActivity pulse on a Item of my ListView and it shows me a contextua...
asked on 28.02.2017 / 15:41
1
answer

How do I consult in a table from a column "json" the rows that contain only one data in that column?

I have a table as follows: CREATE TABLE partes( id INTEGER PRIMARY KEY, id_padre INTEGER, tipos JSON ); I insert the sample data: INSERT INTO partes (id, id_padre, tipos) VALUES (1, 0, '["1","2"]'), (2, 1, '["2"]'), (3, 1, '["2","1"]...
asked on 13.07.2017 / 20:35
1
answer

Ignore multiple conditions in PHP

I have the following doubt I have an if q if it is a process shows some things but if it is any other shows other things. To the naked eye like this: <?php if($proceso == 'Tp'){ echo "Todo esto que ve TP"; } else{ echo "Todas estas...
asked on 05.07.2017 / 23:14