Posts by AlamO • 173 points
12 posts
-
1
votes1
answer645
viewsA: Prepare mobile responsive Iframe or embed
The solution was to add a viewport on the page ** contains ** the iframe. The one already contained. <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1,…
-
1
votes1
answer645
viewsQ: Prepare mobile responsive Iframe or embed
Guys I have a project c# MVC5 and my scenario is as follows: I have to open in a friendly url a large series of pages (with media content) made by third parties. One at a time clear (according to…
-
0
votes1
answer54
viewsQ: Select do not return repeated based on a column
I came across a situation where I have a register of customers who may have more than one address in the related tbEndereco table and an address may belong to more than one customer. But when…
-
0
votes2
answers703
viewsQ: quote and quotes in a string (leaving " or #39; in the View)
I’m trying to put the following text in a string, but I can’t... when I can’t find the wrong double quotes in the arroba... I’m going crazy. Can someone help me? ,{ "@type": "Listitem", "position":…
-
1
votes1
answer294
viewsA: Controller receiving parameter array as null
I was able to solve it by adding Traditional:true, $.ajax({ method: "GET", url: Url, traditional:true, data: { idEstado: idEstado, idCidade: idCidade, idsBairros: idsBairros, idStatus: idStatus },…
-
1
votes1
answer294
viewsQ: Controller receiving parameter array as null
I’m making an AJAX request, but I can’t pass array... My controller is like this: [Route("imoveis/BuscaDados/Json/Listas/ListaQuartos")] public JsonResult ListaQuartos(int idEstado, int idCidade,…
-
0
votes0
answers53
viewsQ: Which is faster? Looking for data in the bank or reading a cookie?
Guys, in your opinion, what would be better in this situation? I’m working on an Asp MVC and Entity Framework website. I have a table of federative units where I have (simplifying) 3 columns Id,…
-
2
votes1
answer46
viewsQ: Error when simulating distinc in query with Linq and lambda Expression
I have 2 tables in a Sqlserver bank. One tbState call and another tbCity. I am trying to return all states of the table tbState that have at least one city (tbCity) and with the properties…
-
3
votes2
answers2574
viewsQ: LINQ using function inside select new{} with lambda Expression
I am assembling a select, with the Entity Framework, which needs to "create a column" according to 4 criteria. I am trying this way: IQueryable<ImoveisDTO> Resultado = ctx.Imoveis.Select(ib…
-
2
votes1
answer1186
viewsQ: Multiple select list with items already selected using Razor
I’m using Razor to generate a SelectList thus: @Html.DropDownList("StatusImovel", new SelectList(ViewBag.ListaStatus, "IdStatus", "Descricao"), new { @hidden = "hidden", @multiple = "multiple",…
-
1
votes1
answer87
viewsQ: Help with ASP MVC routes (3 routes for the same action)
I have a controller: public class imoveisController : Controller { public ActionResult Index(int idEstado = 0, int idCidade = 0, int[] idRegiao = null) { string IdEstado; string IdCidade; int[]…
-
3
votes2
answers1207
viewsQ: Left Join with three or more lambda tables
I have the following consultation on SQL: select e.idEstado, e.txtNomeEstado, e.txtSiglaEstado, c.idCidade, c.txtNomeCidade, de.txtH1, de.txtTitulo, de.txtDescricaoEstado, de.txtDescription from…