Posts by Trxplz0 • 685 points
29 posts
-
3
votes2
answers1272
viewsA: Problems with UTF-8 in PHP project
To avoid problems with special characters you need to ensure that all aspects of your project use the same charset. Set the meta tag in HTML to utf-8 Set the charset to utf-8 in PHP (via header or…
-
2
votes2
answers60
viewsQ: Add methods to plugin namespace without selector
I am creating a plugin in js and need to add some methods to this plugin. This is the basis of the plugin so far: (function ($) { function jarbas(params) { ... } $.fn.jarbas = function (params) { //…
-
3
votes1
answer1208
viewsQ: Work unit (Unit of Work) with repository
In ASP.NET MVC & Entity Framework, because many examples and some open-source projects find a unit of work together with the repository pattern whereas the DbContext is already a Unit of work,…
-
3
votes6
answers1117
viewsA: Algorithm against Brute-force
Of course, none of the techniques already mentioned solves the problem completely. With what we have available, we can do as many have said here: Missed password more than 3 times, uses Session and…
-
1
votes2
answers672
viewsQ: Validation model always fails
I have the following models: public class Local { [Key] public int Id { get; set; } public virtual Grupo Grupo { get; set; } } public class Grupo { [Key] public int Id { get; set; } [Required]…
-
2
votes1
answer596
viewsA: Problem with Bundle scripts
I solved the problem by creating the virtuais path of bundles in accordance with the pastas físicas. For example: bundles.Add(new…
-
2
votes1
answer596
viewsQ: Problem with Bundle scripts
When I publish my Asp.net mvc application the Bundle script generates a ref. scripts problem. As in the debug environment do not use the Bundles the problem does not happen. Error:…
-
1
votes1
answer95
viewsQ: SQL Server versioning integrated into the Entity Framework
In the company I work have chosen to create the models from the database with the Entity Power Tools. We have an online version of our application and locations for testing and development. When…
-
0
votes3
answers206
viewsA: Context in services and repositories
In my opinion the second way is the correct one! Forget DI doesn’t pay! As for the generic repository is exactly what the name says... you can use a generic or a repository for each model, adapt as…
-
3
votes7
answers367
viewsA: Is there a problem if I leave a php file containing only HTML code?
Rename to . html preventing PHP from starting the parse process! As for security, no, because as you said yourself there is no PHP code, vulnerable or not!
-
1
votes1
answer116
viewsQ: User permissions calling all rules at each access
I have a MyRoleProvider implemented and access works normal, if the logged-in user does not have the rule registered he does not allow access. The problem is that at each access to an action with…
-
0
votes3
answers327
viewsA: Fatal error: Maximum Execution
Your code is taking more than 30 seconds to run! You can increase the running time limit with the function set_time_limit(seconds).…
-
2
votes4
answers440
viewsA: Right menu in each Row of a table
Improving @brasofilo’s response, the process does not need additional classes beyond the class .table-context in the table (answer Peoplee) and by row, always taking the last column as context menu…
-
4
votes4
answers440
viewsQ: Right menu in each Row of a table
I have a table and am trying to create an action menu by right clicking on each Row of the table. It’s partially working the problem that I can’t make the script select the context menu for each row…
-
3
votes2
answers372
viewsA: return view with empty model
Assuming that this SalvarNovo is the action of submit of form you simply redirect the user to action that generates the view form. return RedirectToAction("nome da action que gera o formulario");…
asp.net-mvc-5answered Trxplz0 685 -
0
votes1
answer52
viewsQ: Dependency on services
I have a job that closes a back door. Like any input process when registering the note I have the manual registration of each item of the note and when closing the note I need to update the stock of…
-
1
votes2
answers1783
viewsA: How to run database on Android?
If the problem is internet recommend you to use the same local bank (Android Sqlite), however, as said in the comment an experienced user can change the bank releasing access to other unregistered…
-
2
votes1
answer85
viewsQ: Model in sessions
I have a GRID (table) that when selecting an item through the ID I load the entity in a session via ajax. public static class Sessoes { public static Produto Produto { get { return…
-
2
votes1
answer526
viewsQ: Iqueryable select data from multiple tables
I have a queryable (Linq to entities) in the Entityframework and I’m not able to pull data from two or more tables. For example: var model = _service.List().Where(m =>…
-
3
votes1
answer48
viewsA: PHP: Control Id Row[]
For a better view and maintenance recommend using the attribute name instead of using their positions. Select the data the way you want it $Row[position][name] is not possible unless the return of…
-
2
votes3
answers727
viewsA: Does complex code interfere with application performance?
Loop inside the other can be a problem, it depends a lot on what you did and how you did it! Try to drill in a little better. Post small "important" parts of the code for better community analysis.…
-
0
votes4
answers3838
views -
9
votes1
answer260
viewsQ: Documentation in XML
I develop a framework in PHP and would not like to comment on the code of the framework directly in the classes, for several reasons. So I wonder if there is an editor that reads the documentation…
-
0
votes8
answers27292
viewsA: PHP does not send accents to Mysql database
Want to avoid problems with accents? Create/convert all files (PHP, HTML, CSS, all) to UTF8 without BOM. In html put the charset in utf8, in php using header content-type as utf8 and in the database…
-
0
votes2
answers294
viewsA: Request ajax accessing already included scripts
@Gypsy thanks for your help. I solved the problem by putting the scripts in the head instead of placing before closing the tag body. As I have read in various searches and benchmarks when placing…
-
0
votes2
answers294
viewsQ: Request ajax accessing already included scripts
Eae guys, I have a view that renders a partial view. Index.cshtml <script type="text/javascript" src="~/Scripts/jquery-2.1.1.js"></script> <div class="tab-control"…
-
1
votes3
answers516
viewsA: Client router vs server router?
Let’s go there in terms of performance the processing of the routes is indifferent. Now the processing that this route will generate already depends. If you choose to process routes on the client…
-
2
votes1
answer810
viewsQ: Value as Object when selecting item in Select2
The Select2 plugin works normally, the only problem is when I select the item the value put in hidden (mandatory to bring data via AJAX) is as [Object Value] and not the value specified by the…
-
-2
votes4
answers1593
viewsA: Changing connectionStrings from the app.config physically in Runtime
You can change the file physically (XML), just change where you need it, there is no ready-made way for it. In case you need the modifications in memory after physical change you will need to reload…