All Questions

2
answers

What's the difference between @ Url.Content ("~ / css / bootstrap.css") and only "/css/bootstrap.css"

I'm learning to program an application based on MVC4 and Bootstrap. Right at the beginning of the project I came across a puzzle: In _Layout.cshtml I had <link href="css/bootstrap.css" rel="stylesheet"> , Bootstrap worked fine i...
asked on 12.12.2016 / 19:09
1
answer

How to put signals between td

How can I put signs or images in the middle of the edges of a table, as in the image?     
asked on 04.11.2016 / 23:09
2
answers

Open View with Parameters [duplicate]

I have this script: $('#Musico').change(function () { var id = $(Musico).val(); var url = '@Url.Action("Votar","Chamada")'; var tipo = 1; $(function ChamaVotar() { $.post(url, { id: id, tipo: tipo }); });//Functi...
asked on 25.11.2016 / 00:31
1
answer

What is the purpose of __slots__?

What is this __slots__ property for? in the documentation something about "wasted space", but at the end of the accounts I did not quite understand the purpose of using __slots__ . What is it for and when should I use it?...
asked on 11.01.2017 / 15:54
2
answers

How to put 2 select in mysql

I have 2 select which are basically identical, changing only 1 table. I'm trying to put the 2 in a single select, but I'm not getting it. Follow the select: SELECT DISTINCT a.id, a.unidade, a.posicao,...
asked on 03.02.2017 / 17:37
2
answers

Hiding half of a content

How do I do what is illustrated in the image? Knowing that content is not just text but buttons and other things on the home page of a site!     
asked on 27.12.2016 / 14:55
2
answers

Function Optimization (probably with for loop)

I'm having difficulty developing when we talk about for ... The basics I can understand now in practice ... People have developed this code and I believe it can be reduced to a few lines with. Notice that in the input range change it appears...
asked on 24.01.2017 / 22:47
2
answers

How can I compare the keys of a hash with a user input?

File: 101;Johnny 'wave-boy' Jones;USA;8.32;Fish;21 102;Juan Martino;Spain;9.01;Gun;36 103;Joseph 'smitty' Smyth;USA;8.85;Cruizer;18 104;Stacey O'Neill;Ireland;8.91;Malibu;22 105;Aideen 'board babe' Wu;Japan;8.65;Fish;24 106;Zack 'bonnie-lad' M...
asked on 28.01.2017 / 03:41
2
answers

How to redirect user to page after login?

I'm developing a web application, using Asp.Net MVC 5 com Identity and I'm using Roles to perform the authorization. I am trying to do that depending on the Role that the user has, it is directed to a different "Home" pag...
asked on 31.10.2016 / 11:05
1
answer

What is the purpose of the "ready ()" function?

In scripts written in jQuery I always come across a function that is the ready() function, as the first function to be executed, see an example illustration of it: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/j...
asked on 28.12.2016 / 18:47