Posts by Guilherme Branco Stracini • 654 points
31 posts
-
0
votes3
answers842
viewsA: Do you have to make the user type the number of rows and columns of a table and this table appears in PHP?
As I commented, you are not restarting the variable $c in each loop of the rows...so the table is only generated for the first row! Follows example working: <form method="POST">…
-
1
votes1
answer455
viewsA: How to run SQL with Entity Framework?
If you want to execute a command that does not return results (it is not a SELECT) just use DbContext.Database.ExecuteSqlCommand, where Dbcontext is your context. The method need not be used…
-
1
votes2
answers75
viewsA: How to obtain a cookie in the Web API in a Forms Authentication scenario in Cross Application?
To get the cookie from a Webapi controller just use Request.Headers.GetCookies('nome do cookie')
-
0
votes2
answers961
viewsA: How to hide javascript API access data?
Since this is client-side, you can’t hide it. What you have to do is get the token through the server (server-side) using some language like PHP, ASP, ASP.NET, Java/JSP, Javascript (if it is by…
-
0
votes2
answers618
viewsA: Sending model along with uploading files
You should use the multipar/form-data enctype yes, but your action should not have a method, you will have to do the handling of the values in hand, through a foreach loop on…
-
1
votes1
answer100
viewsA: Asp.net MVC does not recognize dates in dd/mm/yyyy received via GET
This is because GET requests are handled by the standard Binder model and it uses Cultureinfo.Invariantculture, unlike POST requests that use the application’s Cultureinfo. In case you have the…
-
0
votes1
answer197
viewsA: Javascript and Activex permissions on IIS
This has nothing to do with IIS or Asp.NET, Javascript is client-side (let’s not get into the merit of Node.js, which is the Javascript server-side because it’s not in the context of the question)…
-
1
votes1
answer136
viewsA: Search the Mysql MVC database
[HttpPost] public ActionResult Search(FormCollection fc, string searchString) { if (String.IsNullOrEmpty(searchString)) return RedirectToAction("Index"); var clientes = db.Locals // Não precisa do…
-
1
votes1
answer286
viewsA: Retrieve the value of a dynamically generated field
What you want is one (or all) of the principles by which you exist SOLID Create an interface, put all the fields that will exist mandatory for all 10, 100, N clients public interface…
-
0
votes1
answer1413
viewsA: How to make visual studio 2015 publish only the files that are most current?
This feature that existed in VS2012 for partial FTP publication no longer exists, has been removed. I think only on the Web Deploy it is still possible to do the partial publication according to…
-
1
votes1
answer130
viewsA: Is it possible to add personal sites to the google maps v3 autocomplete?
What you want is called custom marker (custom markers) You must create the bookmarks and add them to the map, this way they will appear in the search box as well! See the links below:…
-
3
votes1
answer1139
viewsA: Web API - Token
There are several solutions to your problem... When you generate the token in the MVC application, send it to the Webapi (Through a restricted endpoint, which only you have access to), when you…
-
0
votes1
answer73
viewsA: WEBRTC - Socket Node.js
Your mistake is on these lines: websocket.push = websocket.send; websocket.send = function(data) { websocket.push(JSON.stringify({ data: data, channel: config.channel })); }; In the first line…
-
0
votes1
answer177
viewsA: Auto reconnect reusing an async socket connection
Keep the code that creates the connection within an infinite loop while(true){ Código aqui }As soon as you detect that the socket has dropped, insert an instruction continue causing the code to…
-
1
votes1
answer1051
viewsA: Create fields dynamically and set in model
Come on, we got a lot of mistakes... DEBUG/DEBUG code is the best tool to locate errors You are making a GET request (via AJAX) to the method Add, this method expects a Author list as parameter,…
-
0
votes1
answer100
viewsA: What do Threads share when making Http calls?
The problem is the CookieContainer that is being shared by Threads... When you log in, the site you log in to records a cookie in your browser (in this case, the cookie is recorded in…
-
0
votes1
answer203
viewsA: Competition Server ASP.NET
Yes, HTTP requests occur in parallel. It is possible to block this from happening in several ways... First start by blocking the user from pressing the button several times before a request is…
-
1
votes1
answer694
viewsA: Error using Pow(a,b)
Try calling the function as follows: A = pi * pow(R, 2); and see if the error persists. The parentheses in pi is not necessary (but also does not cause error), the error was because you were…
-
5
votes4
answers15034
viewsA: Difference between mysql_connect() and mysqli_connect() functions in PHP
The functions of the Mysqli library are newer and more complex, allowing you to execute stored procedures, functions and other commands that with the Mysql library were not possible. Prefer to use…
-
1
votes3
answers3406
viewsA: Storing representative values of a user’s 'sex' in databases
In the case of fixed information, as is the case. There are only 3 possibilities: Masculine Feminine Undefined (in case your system allows the person not to define sex). Therefore, this data is…
-
4
votes1
answer625
viewsA: Serialization of lists in C#classes
Try this way public sealed class NFe { public infNFe infNFe; } public sealed class infNFe { private List<det> _dets; public det[] det { get { return _dets.toArray(); } //pegamos a variável…
-
2
votes1
answer296
viewsA: Image Transformation of E-mail Text - PHP and Javascript
Yes, it is possible to use the library GD or Image Magick for image manipulation in PHP. First you need a base image (with customer logo, background art, footer...). Ai using GD or Image Magick you…
-
0
votes2
answers85
viewsA: how to print <td> tags in php
I don’t know if I understand what you want, but do you want when you print a screen or print the page to appear the "td" tag on the page ? If that’s what you can do in two ways: Escape the HTML…
phpanswered Guilherme Branco Stracini 654 -
5
votes2
answers191
viewsA: Serve libraries with CDN or Own Server?
The main function of a CDN for a developer is not to be concerned about network traffic and to be able to guarantee visitors always availability of files. For the user is to get from a second domain…
-
2
votes2
answers1320
viewsA: Save user and password without database use
You can do without using a commercial database, but you will end up creating your own "database" and all the mechanism to read, write and protect your file. You can use an XML file and encrypt the…
-
1
votes2
answers436
viewsA: Form does not send the information to the email
The PHP code needs to be compiled, and for that you need a web server (HTTP) and PHP to execute the code! Install WAMP or XAMPP or Easyphp WAMP XAMPP Easyphp These WAMP (Windows, Apache, Mysql, PHP)…
-
1
votes2
answers765
viewsA: How to turn a div with 4 images into just one?
According to the documentation of Event stop of the Resizable Widget and of Event stop of the Draggable Widget you have access to two properties: position (draggable | resizable) size (resizable)…
-
1
votes1
answer86
viewsA: Returning list with property of various entities
The best way would be to actually create a Modelview (MV) and then your Controller will populate it with the data that will be displayed in your View
asp.net-mvcanswered Guilherme Branco Stracini 654 -
2
votes2
answers93
viewsA: mysql organizing database entries
It is possible, but it is not as easy as in a pile, if we imagine a pile, physically, in an environment that there is gravity, if you take any element from it, the ones above will logically "fall"…
-
3
votes4
answers10375
viewsA: Difference between Object, Dynamic and var
public sealed class Exemplo() { private String _nome; public Exemplo(String nome) { _nome = nome } public String Nome { get { return…
c#answered Guilherme Branco Stracini 654 -
3
votes3
answers468
viewsA: Include/Require 'file.php' or Include/Require('file.php')
require and require_once produce an E_COMPILE_ERROR when the file is not found or cannot be accessed. E_COMPILE_ERROR for script execution. include and include_once produce an E_WARNING when the…