Posts by Rafael Barbosa • 2,855 points
116 posts
-
1
votes0
answers93
viewsQ: Javascript API Requests
I am using the Javascript API in my Cloud. I have several different doors with the application of each client, in the end I have something more or less like this: clientea.rafaelcloud.com.br and…
-
4
votes1
answer30
viewsQ: Using KEY element
In my model, I use a view that is built on the basis of certain joins of tables, which have no auto incrementable ID element. My model requires that I assign a TAG Key, however, as I have no single…
-
2
votes1
answer35
viewsQ: MVC Read Agility
I have an application in MVC 4 that has no addition/deletion/editing operation, it only reads and provides data (as filters). The data basically comes from 4 views. Being the first of about 1,500…
asp.net-mvcasked Rafael Barbosa 2,855 -
0
votes0
answers48
viewsQ: Registration tool
I have an application with about 30 basic registers, currently I use a tool in . Asp in which, I configure working with Request I have a generic page acting on all registration. Currently it is…
-
0
votes1
answer158
viewsQ: Read appSettings Encrypted Web.config
In an application that uses classic Asp, I have a key called connection:asp30 and another call connection:asp60. This application has several pages Asp and other aspx. I encrypted Web.config at the…
aspasked Rafael Barbosa 2,855 -
0
votes2
answers1154
viewsA: Using distinct with Entity Framework
My question was not so clear, in any way Ricardo’s answer helped me in a general concept. My resolution was quite alternative, follows:…
-
2
votes2
answers1154
viewsQ: Using distinct with Entity Framework
I have an object with a structure something like this: Date Description I’m thinking a distinct() in the description field because the records are ridiculously repeated. The question is, the…
-
3
votes1
answer48
viewsQ: Database First - MVC
I have always worked with code first and using only one database. However, I need to work with an application with two databases already created. To work with two databases, I created this: Passing…
asp.net-mvcasked Rafael Barbosa 2,855 -
1
votes2
answers114
viewsQ: Receive variable value in 'Where in'
In my procedure I have the following variables: @Codigo VARCHAR(MAX),@cont as int, @DataPago as VARCHAR(10) Via C# application I am passing the values as follows: y1.Parameters.Add("@Codigo",…
-
-1
votes1
answer104
viewsQ: Get currency quotes from date
I am making an application and would like to know if there is any way to get currency quotes from an X date (not necessarily will be the current day) via Webservice consumption.
-
1
votes1
answer77
viewsQ: Set virtual field name
I have the following code in my model SubGrupo: namespace Aplicacao.Core.Dominio { public class SubGrupo { [Key] public int Codigo { get; set; } [Required(ErrorMessage = "Campo Obrigatório.")]…
asp.net-mvcasked Rafael Barbosa 2,855 -
2
votes2
answers571
viewsQ: Pass generic model to controller
My project follows the following model: In my Controller I have the following: I noticed you might be using this ActionResult dynamically. My view is typical. I wonder if there’s a way to pass the…
asp.net-mvcasked Rafael Barbosa 2,855 -
0
votes1
answer45
viewsA: Input not receiving Focus on click
I removed the confirm() and it worked. The script was as follows: function CampanhaDefault(origem) { $("#ValorMinimo").parent().parent().hide(); $("#ValorParcela").parent().parent().hide();…
jqueryanswered Rafael Barbosa 2,855 -
0
votes1
answer45
viewsQ: Input not receiving Focus on click
I got the following script function CampanhaDefault(origem) { $("#ValorMinimo").parent().parent().hide(); $("#ValorParcela").parent().parent().hide(); $("#PDesconto").text("% Desconto")…
jqueryasked Rafael Barbosa 2,855 -
1
votes2
answers5074
viewsQ: Encoding ASP Classic
I have an application in .asp and was having problems with special characters, they were printed on canvas in a totally unnatural way. To solve the problem, I applied: Response.CharSet =…
-
3
votes1
answer504
viewsQ: Text overwriting the header
I tagged C# because virtually all the examples found on the internet are in this language and "translate" to vb.net is quite simple. Man report based on the iTextSharp is dynamic. It has a header…
-
1
votes3
answers487
viewsA: Navigate horizontal scroll by pressing tab
How scroll only navigates on input worthless, I resolved as follows: $('input').focus(function () { var val = ""; var attr = $(this).attr('placeholder'); if (typeof attr !== typeof undefined…
-
2
votes1
answer182
viewsA: Navigate tab input with values
How scroll only navigates on input worthless, I resolved as follows: $('input').focus(function () { var val = ""; var attr = $(this).attr('placeholder'); if (typeof attr !== typeof undefined…
-
0
votes4
answers3842
viewsA: Link in tr of table
$(document).ready(function(){ $('tr').click(function(){ location.href = "noticias.php?jr=" + $(this).attr("data-destino") }); }); while($linha = mysql_fetch_array($query)) { $timestamp =…
-
1
votes2
answers1122
viewsA: Get checkbox values in Datatable with paging
Resolved as follows: var table = $('#example').DataTable({ "bDestroy": true, "bSort": false }); var Check = table.$('input:checked').serialize(); I re-start loading the table example to be able to…
jqueryanswered Rafael Barbosa 2,855 -
1
votes1
answer182
viewsQ: Navigate tab input with values
First of all it is not the same question that did previously, is a supplementary question. I currently have the following model on Jsfiddle that works regularly, you will pressing tab and the scroll…
-
5
votes1
answer1261
viewsQ: Access webcam to take photo
How can I have access to webcam to take some photo and upload directly to my server? Is there an API that helps me?
-
4
votes1
answer897
viewsQ: Obtain image data
My system should process some images and get key data in text. Of course, the images will follow a style pattern. Where can I start? Is there an API that can help me?
-
14
votes2
answers11938
viewsQ: Get national holidays
I am making an application and would like to know if there is any way to get the national holidays. For example: Some Google Calendar API where I can get some XML to consume..
-
2
votes2
answers1122
viewsQ: Get checkbox values in Datatable with paging
I have a table with the plugin Datatables. In every row of my table, I own a <input type="checkbox" /> . I have a button to enable/disable the items described in each table row. Basically, I…
jqueryasked Rafael Barbosa 2,855 -
0
votes3
answers506
viewsA: Site locking on specific pages
Despite all valid comments regarding the way the site was developed, the problem was not this. The site had undergone an SQL Injection.
jqueryanswered Rafael Barbosa 2,855 -
1
votes3
answers506
viewsQ: Site locking on specific pages
I have few functions on this site, but I believe some jQuery is doing the following page curb. The scripts are basically: <script> $(document).ready(function () { $('.contato').hide(); });…
jqueryasked Rafael Barbosa 2,855 -
11
votes3
answers487
viewsQ: Navigate horizontal scroll by pressing tab
I’m using the plugin datatables. I built a table where the first four columns are fixed and the others (which will be generated "dynamically") have input for quantity typing. My intention is that…
-
2
votes1
answer1001
viewsA: Carousel with touch screen interaction
I recommend using a plugin already ready, as in the case, the Owl Carousel Example: HTML: <div id="owl-demo" class="owl-carousel owl-theme"> <div class="item"><img…
-
8
votes3
answers466
viewsQ: Best practice to check if the module is being used
My question which perhaps - I hope not - can be considered as of opinion, is conceptual and even simple. In most applications, we work with features that when used by multiple users at the same time…
-
2
votes1
answer45
viewsQ: Horizontal scroll when pressing tab
I have a table based on the plugin Datatables and with it, I fixed the first four columns of my table that may have n columns - they are generated the basis of a database query - and, fixed columns…
jqueryasked Rafael Barbosa 2,855 -
1
votes3
answers381
viewsQ: Use query within the value of another query
It is possible - with some syntax adaptation - to fulfill the objective of the following query? insert into X (a, b) values(16, select c from Y where d = e)
sqlasked Rafael Barbosa 2,855 -
5
votes3
answers2617
viewsA: Put div in the background
The ideal would be to give me an answer based on your code, but as you did not post (it is the tip for correction), I will tell you some solutions. You can have several types of positionin the CSS.…
cssanswered Rafael Barbosa 2,855 -
2
votes1
answer125
viewsA: Reduce js code and number of requests
I don’t know if I got the question wrong, you want to do this? Full version: $(document).ready(function () { $('.combobox').combobox() $('.tooltip-icon').tooltip({ placement: 'top', title: 'Eles só…
javascriptanswered Rafael Barbosa 2,855 -
3
votes2
answers2482
viewsQ: Repeat header in print
I can’t release the report I’m using, so I took a generic model on google to help me explain the doubt. Assuming my report is as follows:: It is mounted via HTML on a system that works with both C#…
-
2
votes1
answer63
viewsQ: Call off Backspace action
I made the following script $(document).ready(function () { $('html').keydown(function (e) { if (e.keyCode == 8) { ConfirmarVolta(); } }); }); function ConfirmarVolta() { if (confirm("Deseja voltar…
jqueryasked Rafael Barbosa 2,855 -
2
votes3
answers183
viewsQ: Insert values from table B in table A if they do not exist
Usually when we work with a insert table based on the select from a tabelaB, we do something similar to this: INSERT INTO tabelaA ( column1, column2, someInt, someVarChar ) SELECT tabelaB.column1,…
sqlasked Rafael Barbosa 2,855 -
2
votes1
answer142
viewsA: How to make video mute start
Please check if this works. If, no, I will be editing the answer. function init() { var video = document.getElementById("Video1"); if (video.canPlayType) {…
-
2
votes2
answers428
viewsA: Is it correct to use JS to make the effects of an HTML?
The question is somewhat based on opinion, but come on. In my answer, I will bridge the gap with your other questions presented here at stackoverflow. When you work with the css to add style, you…
-
3
votes1
answer184
viewsA: Responsive layout
If you apply @media (max-width: 1680px) and (max-height: 1050px){ You get everyone who goes from 0 to 1680px wide and also everyone who goes from 0 to 1050px tall. That is, you may be overwriting…
-
1
votes1
answer12676
viewsA: Iframe mobile responsive mode
Example using boostrap: <div class="col-lg-6"> <iframe…
-
3
votes3
answers10234
viewsA: border-Radius in table does not work CSS
I don’t understand exactly what you want. Would that be? HTML <table class="borda-na-tabela"> <tr> <th>ASDFASDF</th> <th>ASDFASDFASDFA</th>…
-
1
votes3
answers1741
viewsA: Change the breakpoint (breakpoint) of the navbar
Change the max-width according to the desired. @media (max-width: 990px) { .navbar-header { float: none; } .navbar-toggle { display: block; } .navbar-collapse { border-top: 1px solid transparent;…
-
6
votes3
answers377
viewsA: How do I work with responsive design?
You can specify and apply according to the desired height and width combination. Example: @media (min-width: 768px) and (max-width: 979px) Honestly, it is not easier to use some framework like…
-
0
votes3
answers2414
viewsA: How to byte[] a uploaded file into a C#Uploadfile
I don’t know if it was a hasty read, but I didn’t quite understand your question. Anyway, I’m sending down the way I work with uploading files. My systems are in MVC, but it is easy to 'convert' the…
-
3
votes1
answer72
viewsQ: Getting all values on Lambda
My code has the following structure: var a = ViewData["a"]; var b = ViewData["b"]; var c = ViewData["c"]; var d = ViewData["d"]: foreach(var x in ObjetoE).where(x=> x.A == a && x.B == b…
-
4
votes3
answers1500
viewsQ: Copy bank record
I used the following query to try to 'copy' a record insert into valores select * from valores where id = 1 However, I receive the following message: An Explicit value for the Identity column in…
-
3
votes1
answer314
viewsQ: Authentication - Current.User.Identity returning null
My login Dim senha = "null" If Not (senhaLogin.Text = "") Then senha = senhaLogin.Text End If Dim Usuario = GetUsuario.Where(Function(a) a.Email = emailLogin.Text And a.Senha = senha) If…
-
4
votes1
answer3805
viewsQ: Get table row values
I need to get the values of each row of my table. My table has no fixed number of rows or columns. I only desire the values of inputs (within the td). Desired inputs have class quantidadeDigitada…
jqueryasked Rafael Barbosa 2,855 -
2
votes2
answers2842
viewsQ: Accept only multiples of X in input
I need my input to only accept multiples of an X value that will be defined via the function parameter. How can I proceed?
jqueryasked Rafael Barbosa 2,855