Posts by Randrade • 21,612 points
490 posts
-
4
votes1
answer31
viewsQ: SVN externals in Git. Is there?
I have a common layer in my project that will serve two or more companies. I know that in the SVN there is the option Externals in which I refer an external repository to the repository of the…
-
7
votes1
answer186
viewsA: ASP NET MVC standard
There is no "default" for the project structure, except what Microsoft itself mounts for you, which is the most recommended. In this base template, you already have everything in its proper place.…
asp.net-mvcanswered Randrade 21,612 -
4
votes1
answer1909
viewsA: Asp.NET + Pagseguro
Pagseguro has this tutorial explaining what you need to use your library. The official Github of the project can be seen here. This answer do @Ciganomorrizonmendez has a "small tutorial" on how to…
-
4
votes3
answers1682
viewsA: Is it common to have multiple different servers for the same web application?
I will base my premise that there is no difference between the quality of service between the contracted accommodations. I refer to the difference in quality between stays that exist. For this…
-
0
votes1
answer8504
viewsA: Insert a calendar with HTML
If the timetable referred to is of this page, he is using the Fullcalendar for that reason. To use on your site, just do download the page or use the cnd. A basic example would look like this:…
-
2
votes2
answers1221
viewsA: Disable mouse scroll
Using jQuery you can do this in a few ways. You can simply disable the scroll as you wish, or force scroll operating only in the div in question. Would that be the case: $('#good').bind('mousewheel…
-
3
votes2
answers2098
viewsA: Display decimals (Currency) is rounding
There are other ways to get the same result, like everything in the programming. You can make a Explicit cast for decimal. Use the decimal. Parse() to convert the values (much used when the value is…
-
0
votes1
answer1462
views -
0
votes2
answers611
viewsA: Send email using ASP.NET
Doing it in a different way, but with the same methods as @Spectron’s answer, it would look like this: public ActionResult EnviarEmail(){ using (var smtp = new SmtpClient()) { var message = new…
-
1
votes2
answers284
viewsA: How to use jQuery in MVC Architecture?
jQuery is View, simple as that! jQuery is client-side, where modifications can be made and manipulating information. The jquery website itself says: jQuery is a quick, small and feature-rich…
-
2
votes2
answers135
viewsA: Help with HTML/Javascript
There are a few ways to do this. As you are a beginner, I will put the most "simple" (I found) way to do this, but not the best. First, let’s look at a functional example: <script> function…
-
0
votes1
answer54
viewsA: How to use AJAX in many Layers?
Most of the time it is not necessary, nor recommended to use this architecture with Asp.net-mvc. On the contrary. Often you are just complicating a simple thing without need. This has been commented…
-
4
votes1
answer1758
viewsA: How to build menu and sub menu?
Well, that has no direct connection to Asp.net-mvc. What you want is just a sub menu with Bootstrap. Would something like this: (function($){ $(document).ready(function(){ $('ul.dropdown-menu…
-
2
votes1
answer2049
viewsA: Disable button while form is not valid
Well, if you really want to do it that way, you need to check if the form is valid for each user interaction. If only inputs in your form, you can use the event blur jQuery. You can get the elements…
-
1
votes3
answers1392
viewsA: Grab content from div, a, select
There are several ways to do what you want, I’ll leave here the form I find simpler. Well, first of all, the person should have a chosen type of sport, so let’s leave the first item with the class…
-
6
votes2
answers26904
viewsA: How to Export an HTML table to PDF and EXCEL
I better do this in javascript(front end) or (backend)? It is better to do this in the back end for security reasons. A page HTML can be manipulated, and thereby have your data manipulated. If you…
-
1
votes3
answers323
viewsA: Writing Div ID Makes Div Hidden Appear
Leaving the data in a hidden div is not at all safe, anyone can look at the data and change (in the client side). The ideal is to take to the page only what you use and/or the user will be allowed…
-
0
votes2
answers616
viewsA: ASP NET MVC - Download html table
All you have to do is create a Action in your controller with the HTTP header who wishes, in your case to .xls. In terms of code, it would look something like this: public ActionResult…
-
2
votes2
answers10585
viewsA: How to select the sibling elements?
Another way beyond the answer of @Gabriel Rodrigues would use the .parent() and the .find() to select which one you want. See the example below: $(document).ready(function(){…
-
3
votes3
answers1667
viewsA: Function to format dates
You can use the Javascript Date Format for that reason. /* * Date Format 1.2.3 * (c) 2007-2009 Steven Levithan <stevenlevithan.com> * MIT license * * Includes enhancements by Scott Trenda…
-
0
votes1
answer88
viewsA: Return Email from friends Facebook friend_list
Unfortunately the Facebook restricted some functionality in order to keep the privacy of users. With this, it is not possible to get the email in the desired way. Large companies have a "gentlemen’s…
-
4
votes2
answers375
viewsQ: Should I compress files to save to the database?
I don’t want to take into account whether saving files in the database is a good practice. Since many systems save the files (images, pdf’s, doc’s, etc.) in the database, I would like to know if it…
-
2
votes1
answer617
viewsA: How to disable query caching in MYSQL?
The query_cache is divided into three types: On, off and on-demand. Disconnected: query_cache_type = 0 Connected to all query’s: query_cache_type = 1 On-demand: query_cache_type = 2 To change the…
-
2
votes2
answers769
viewsA: Add a datepicker calendar in multiple dynamically generated fields
I don’t know what you’re calling it datepicker(), but you can add the class to the elements you want to add, it would look like this: for (var i = 0; i < 5; i++) {//Coloquei o i como 5 apenas…
-
11
votes1
answer219
viewsQ: How was the relationship between Web Api and Asp.NET MVC in Asp.NET 5?
Us ASP.NET 4.6 or less there were differences between Web Api and Asp.Net MVC. O controller, may inherit from controller or of ApiController. However, with the arrival of the Asp.Net 5 will not have…
-
3
votes3
answers6430
viewsQ: How to change the color of a Glyphicon?
I’m using glyphicons, but I don’t know what the bootstrap does to add the color of it. It always comes with a "default color". How is the mechanism to define the color of glyphicons and how can I…
-
4
votes3
answers6430
viewsA: How to change the color of a Glyphicon?
The bootstrap searches the color according to the already applied css on the page. For example, if you have an icon inside a link, and you have changed the color of the links in css, the icon will…
-
16
votes3
answers10118
viewsA: Where should the business rule be in the MVC standard?
It is not advisable to put business rules in a service, that is, create a service layer for this. There is a great discord whether it should be placed on the model or the controller (M or C of the…
-
4
votes2
answers308
viewsA: How to Include an Item in a Icollection
You can use the Begincollectionitem to accomplish this. I answer this a few times here. To use it you must install the package via Nuget with the following command: Install-Package…
-
1
votes2
answers908
viewsA: How to load page reload when selecting dropdownlist item from jquery list by passing parameters?
To do this you can use the event .change() jQuery and pass the value of the selected item to a location.href. That would be your example: $('#selecao').change(function(){ var parametro =…
-
3
votes2
answers1790
viewsA: Data Search with Entity Framework
The Entity Framework is a "robust" framework that deals with several factors for you, such as Lazy Loading, Change Detection, Proxies, among others. If you disable these features you will get a…
-
3
votes2
answers331
viewsA: How to adjust bootstrap image height?
In his CSS you own the following class: <style> #imagem { height: 500px; } </style> Add her in a media querie in his CSS with the height correct that the image will look the way you want…
-
6
votes2
answers793
viewsA: Save XML from a List
You can serialize your list directly on XML, thus; private void GravaListXMLinq(List<Equipamento> ListaEquipamentos) { string caminho = @"D:\XML\saida.xml"; try { //cria o serializador da…
-
5
votes1
answer144
viewsA: Share types between API and client application
There is no way to say what would be the "best way" to do this, it would give a huge margin for opinion, so I will try to express the pros and cons in each way. Before looking at this you should see…
-
1
votes1
answer459
viewsA: Visual Studio Publishing Methods
Go to the properties of your project (right mouse button > properties || ALT + Enter on top of the project), in the tab Publish. There you find the button Application Files and select the ones…
-
37
votes4
answers1512
viewsA: What is reverse engineering?
Reverse engineering, in layman’s terms, is nothing more than discovering how the program works with the finished program.¹ To perform reverse engineering one must analyze the finished product and…
-
0
votes2
answers189
viewsA: Asp.Net Dropdownlist tooltip or title with JS
I don’t know if I understand the problem very well, but if you need to change the title of an element using javascript you can do it this way: <script> function alteraTitulo() { var ddl =…
-
2
votes2
answers162
viewsA: Extract Posts from Linkedin Feed
What you read in Soen’s reply is correct, it is no longer possible to do so. No Official Blog of Linkedin you can see the changes that took place in May 2015. It is becoming common for companies to…
-
1
votes1
answer1502
viewsA: pass jquery data to the controller and return values
As stated in the comments by @Marconi, you can use Ajax to do this. First you will send the data to your Action by Ajax, then do what you need and return the data via json for your view. An example…
-
4
votes5
answers100
viewsA: Copy a word from a column to the end
You can use the Charindex() and the Substring() to do what you need. First we must find the delimiting character, in your case the comma. After that we will get what comes before and after the…
-
1
votes3
answers805
viewsA: Picking text from a particular column with jquery
The option @Tobymosque posted works, and will be your best option if you want to send those values somewhere. I’ll just leave an alternate form using the $(this) that @Tobymosque commented. To do…
-
4
votes3
answers167
viewsA: How to know if at the beginning of a <p> they have "x" character?
Well, the first thing you should do is check if the text has the character you want. If yes, add the class to the text with the desired style. If not, send it normally. There are some ways to get…
-
6
votes3
answers3201
viewsA: Get class name of an object
Come on. First, let’s change the way you’re getting the class, for this: class_obj = document.getElementById(ddData.element.id).className.baseVal; console.log(class_obj); You are using the string…
-
2
votes1
answer1189
viewsA: How to Switch Input Select according to Radio Button
If I understand your question, you will need to initialize the selects hidden, as said in the comments. After selecting a radio you show the select chosen. In the example lowered I created the…
javascriptanswered Randrade 21,612 -
1
votes1
answer738
viewsA: Create ODBC Connection
The solution was to change the method CreateDNS to pass the remaining parameters, including the Interbase driver. The method looks like this: public static void CreateDSN(string dsnName, string…
-
2
votes1
answer738
viewsQ: Create ODBC Connection
I am performing the integration of my system with the SEFIP. The database is in Interbase (.gbd). I can connect to the database via Microsoft Access normally. I created an ODBC connection manually…
-
18
votes1
answer756
viewsQ: Denial of service with stress test
First of all, a stress test, second this reply from @guiandmag is: Stress testing consists of subjecting the software to extreme situations. Basically, the stress test is based on testing the…
-
5
votes1
answer5487
viewsA: Modal occupy full screen
Just change the class properties modal-dialog and modal-content, in this way: .modal-dialog { width: 100%; height: 100%; padding: 0; } .modal-content { height: 100%; border-radius: 0; } Jsfiddle…
-
1
votes6
answers8595
viewsA: javascript loop with Sleep
You already have good answers on how to do this with the setInterval then I won’t go that way. You can create a function to wait for the desired period and call it after each loop, this way: for(…
javascriptanswered Randrade 21,612 -
5
votes1
answer5408
viewsA: Problem when using Select
It may be missing some file. Add how you referenced them in your html. Remembering that you need to "start" the material_select(), in this way: $(document).ready(function() {…