Posts by Mauricio Ferraz • 2,074 points
56 posts
-
0
votes0
answers30
viewsQ: Why does the Identity mvc template ultilize async in controllers?
When creating a template ASP NET MVC 5 with Identity for example the Login method uses async not to lock the main thread. I did not understand what is the need to do this being that after the user…
-
3
votes2
answers155
viewsQ: How to make Where ands dynamically with Linq and Entity Framework?
How can I make the ands dynamically in the where using Linq and entityFramework? Thanks in advance for any help. return _dbContext.TbParceiro //Preciso fazer algo do tipo mas isso não funciona, não…
-
-2
votes1
answer258
viewsQ: Update records linked with Entity Framework?
For example I have a person class and every person can have a spouse if she wants to (Optional). Suppose I have two people registered at the bank: Personal: 1, Name: John, Personal = null Personal:…
-
1
votes1
answer474
viewsQ: How to bring other columns with Groupby with LINQ
I have two tables: 1st Process containing Processoid and Situacaoprocessoid 2nd Situationthe process that contains Situationthe Process and Description Models: public class ProcessoModel { public…
-
1
votes1
answer276
viewsQ: Many To Many Entity Framework Update
I’m having trouble at the time of updating with relationship Many to Many. I want the update method to update all itemEntity fields as well as vendors. For example I only put the description field…
-
1
votes2
answers1650
viewsA: Bootstrap menu does not open submenu
Your menu is normal, it stops working when it does not find the js files then it may be that your reference is wrong. On link 1 had a tag closing without being opened. Test with these: <link…
bootstrap-3answered Mauricio Ferraz 2,074 -
0
votes3
answers624
viewsQ: How to add a scroll bar in Popup with css?
I have the Popup below that when I decrease the screen it does not create the scroll bar not being possible to see the full content. How can I create a scroll bar for when the browser is in a…
cssasked Mauricio Ferraz 2,074 -
3
votes2
answers540
viewsQ: How to sort with LINQ with one LIST<T> inside another?
Apparently easy but I’m not able to make a LINQ that orders two LIST that are nested. I don’t know if the word "nested" is correct. How can I do this ordering through LINQ, in the code below I…
-
0
votes1
answer83
viewsQ: Where is the source folder on the server? Team Foundation Server
I downloaded and installed Team Foundation Server on the company’s server, uploaded a project on it through Visual Studio and all right. Would you like to know which folder the project source is in…
team-foundation-serverasked Mauricio Ferraz 2,074 -
6
votes1
answer185
viewsQ: What is Level Trust of an ASP.NET application?
What is the purpose of setting up Level Trust in an ASP.NET application? It protects the server from something? It protects the application from something? In which case or for what reason it is…
-
2
votes1
answer2320
viewsA: How to play fade effect in modal bootstrap to jquery ui dialog?
I found this answer in https://stackoverflow.com/, I think that’s what you’re looking for: http://jsfiddle.net/945Tt/4/ Reference:…
-
4
votes2
answers419
viewsQ: Write access log to ASP NET MVC application
I have an ASP NET MVC site and I need to record it in the database every time someone accesses by recording the client’s IP and access date, is there any way to do this? I don’t want to record every…
-
10
votes1
answer1490
viewsQ: Polymorphism or inheritance?
I’m learning about polymorphism and I’ve been wondering if what I’m doing is actually polymorphism or just inheritance? If it’s polymorphism what’s in my code that I can clearly identify is…
-
1
votes2
answers691
viewsA: How do I send an email without sending an attachment?
You can do it like this: This code does a check to see if any attachments have been informed, and it checks if the file actually exists so that it can be sent, if these conditions are not true it…
-
1
votes2
answers355
viewsA: Maintenance page ASP.NET MVC
I found a solution that is not very elegant but that solved my problem without too much complication. 1º I created an index.html file that is my maintenance page containing the content that should…
-
6
votes2
answers335
viewsQ: How do the parameters that LINQ methods receive work?
How the parameters within these methods that receive these parameters work: <TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) An example is the method…
-
1
votes2
answers355
viewsQ: Maintenance page ASP.NET MVC
I have an ASP.NET MVC site that when it goes into maintenance I need to display a maintenance page, ASP.NET MVC has some possibility to do this just by changing a key on Web.Config or something…
-
2
votes3
answers3976
viewsQ: Align Text vertically with Bootstrap without fixed height
I’m trying to align the text vertically in my header but it seems impossible. I want my header content to always be in the center vertically, I did horizontal but vertical can’t. Thank you. Follow…
-
4
votes1
answer256
viewsQ: What is the difference between "Exception.Message" and "Exception.Tostring()"?
I’ve read some answers regarding try-catch and on the Exceptionbut I still have doubt about the difference in Exception.Message and Exception.ToString(): What’s the difference between one and the…
-
4
votes1
answer897
viewsA: Select to show all tables that have fields with specific data type
Great, I found what I needed :D Follows the code: SELECT * FROM information_schema.COLUMNS WHERE 1 = 1 AND TABLE_SCHEMA = 'nome_do_meu_banco_de_dados' AND (DATA_TYPE = 'FLOAT' OR DATA_TYPE =…
mysqlanswered Mauricio Ferraz 2,074 -
4
votes1
answer897
viewsQ: Select to show all tables that have fields with specific data type
I have a database that I need to change all the columns that are in FLOAT AND DOUBLE to DECIMAL, are about 150 tables and I spend a lot of time looking one by one, there is some command that shows…
mysqlasked Mauricio Ferraz 2,074 -
1
votes0
answers198
viewsQ: Routes or Urls in ASP.NET Web Forms
I have an ASP.NET application with Webforms it is hosted as follows: http://meusite.com.br/MeuAplicativo/Seguranca/Login.aspx. I want that when you type in the browser…
asp.netasked Mauricio Ferraz 2,074 -
29
votes1
answer1530
viewsQ: Property Vs variables
I’ve always used properties in C# this way: public int Numero { get; set; } Today I asked myself, why do I use this get and set instead of a variable? Is there a difference? I only use it that way…
-
1
votes1
answer63
viewsQ: View inside an area as default in MVC
How can I make a view inside an area the default when running the application? Error I am getting: My structure: My file Routeconfig What I did below didn’t work. namespace WebApplication1 { public…
-
4
votes1
answer61
viewsQ: Partial for separation of events and methods
I saw in a system a separation of methods in a partial and the events in another in UserControl and Window as the example below: "Pessoa.xaml.cs" public partial class Pessoa: UserControl {…
-
5
votes1
answer186
viewsQ: ASP NET MVC standard
I am learning ASP.NET MVC and would like to learn about design patterns, I have a lot of doubt on how to assemble my Solution. I would like to know the default names for Solution, folders, layers,…
asp.net-mvcasked Mauricio Ferraz 2,074 -
3
votes2
answers2982
viewsQ: Digitalbush plugin for CNPJ and CPF masks in the same field
I use the plugin below in my html fields to make the mask, I arose the need to put the mask cnpj and Cpf in the same fields, someone knows how to do this with this plugin?…
-
1
votes1
answer114
viewsQ: What is the difference between Formsauthentication createPersistentCookie true or false?
In an ASP.NET Web Forms application that uses Formsauthentication on Login would like to know: What’s the difference in using Formsauthentication.Redirectfromloginpage with createPersistentCookie…
-
4
votes1
answer555
viewsQ: Bootstrap Nav-tab event to run on the c#server side
I am using the following code to use tabs in my Asp.Net application, is there any way to add an event so that when switching tab run some event on the server side equal to the ajaxcontroltoolkit…
-
2
votes1
answer55
viewsQ: Mysql - No changes Detected
Every time I change a process in Mysql Workbench and try to write (Apply) and I get the following message (No changes Detected) there to get around the problem I delete and recreate the process.…
mysqlasked Mauricio Ferraz 2,074 -
8
votes1
answer355
viewsQ: Centralize (use only one) a Try-catch for every WPF application
Is there any way to centralize a try-catch for every application in a WPF application with C#? I created a window to use as MessageBox customized. When there is an error in any system registration…
-
1
votes2
answers756
viewsA: How to Download FTP Files
I found a solution I don’t know if this solution is the right one but she does what I needed: string strCaminho = "http://MeuSite/MeuArquivo.txt"; string nomeDoArquivo = "MeuArquivo.txt"; using…
-
6
votes2
answers853
viewsA: How to get Text from a Listview?
I put an example of how I would do it without using the FindControl which is what you want. Well actually data recovery and by itself Datakey of ListView and no more of label. I want to make it…
-
18
votes1
answer314
viewsQ: Is it correct to use a block using inside another using block?
It is correct to use a block using inside another block using as in the example below? or just put the first using? public DataTable Listar(string stringMySql, CommandType commandType,…
-
4
votes2
answers756
viewsQ: How to Download FTP Files
I need to download txt files that are on an FTP, I tried to use the following repackaged code below for this but it does not do what I need. The first parameter of the Downloadfile method is the URL…
-
0
votes1
answer7315
viewsA: Show/Hide button
I think that’s what you want: Hide() hides the div when the page ends loading. toggle() is triggered by the button displaying and hiding the div <html> <head runat="server">…
javascriptanswered Mauricio Ferraz 2,074 -
1
votes2
answers1398
viewsQ: How does the div always get the maximum page size?
How is it possible to make the <div> content has as minimum the size of the page in any resolution or monitor without creating scroll bar? Where the scroll bar should only exist when the…
-
1
votes2
answers700
viewsA: How to add a`ul` to a`li` HTML element via c#code?
Follow another example that can be done by .aspx.Cs(Codebehind) using System.IO; public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) {…
-
3
votes1
answer379
viewsQ: How to update the value of one cell based on another in WPF Grid View
I have the following Grid, I would like to know how I can do so that when I leave the Gain or Spend field it updates the Total? If there’s any other way I’m happy to meet. Total = (Gain - Expense)…
-
0
votes3
answers1868
viewsA: How do I pop buttons on top of my div?
Taking advantage of the two good answer above I put a code for complete the answers as you can pick up the values of the buttons to know which article is editing Note: The loop of repetition is and…
-
2
votes1
answer433
viewsA: How to use a theme in wpf?
I know the question is old but can help others, I know two ways to do: 1º Way is Via Nuget: Right click on the project and select "Manage Nuget Packages" option and install Wpfthemes. It will…
-
1
votes1
answer1559
viewsQ: How to do a back post (refresh) on MVC
I am new to MVC and am used to web Forms and the events of the controls that cause postback and update the page. I need to do this update on the MVC page after a javascript is triggered. In the code…
-
1
votes0
answers232
viewsQ: How to maintain the current state of Gridview with Detail jQuery after Post Back
I am using the following solution for my grid: http://www.aspsnippets.com/Articles/Build-Master-Detail-GridView-using-jQuery-in-ASPNet.aspx This solution makes a grid appear and unlearn as it is…
-
2
votes1
answer769
viewsQ: How to place two or more Google Charts on the same page using JSON and Asp.Net
I have the following code that works very well and generates a Google Charts, I would like to know how I can put 2 or more Graphs on the same page? I wonder if it is necessary to repeat this call of…
-
2
votes2
answers544
viewsA: Progress bar on file upload and information registration
I also needed to put some activity indicator in my Asp.net application, I managed using jQuery Blockui. It blocks the page so the user does not click and displays some image, gif, message so that…
-
3
votes3
answers903
viewsQ: How to apply String formatting in Datagrid - WPF
I have a Data Grid in WPF that has columns of CPF, RG, CEP and others, I need to do the formatting for: CPF: 111.111.111-11 RG: 11.111.111-1 With number at the end RG: 11.111.111-A With letter at…
wpfasked Mauricio Ferraz 2,074 -
0
votes2
answers710
viewsQ: Error when adding reference to a web service
I am trying to add a reference to a Web Service within my project by Visual Studio and I get this error: There was an error downloading…
-
0
votes1
answer2209
viewsQ: How to fill out a web form through c#
Is there any way to fill out a web form via c#? I have a system developed in WPF and when the user clicks a button open a particular page in the browser and your fields are filled automatically with…
-
4
votes1
answer1252
viewsQ: What is Handled for C#
I saw in some codes the use of Handled being assigned as true and false of Combobox event arguments - Selectionchanged, Textbox - Lostfocus, Button - Click. I wonder what it’s for and what it…
c#asked Mauricio Ferraz 2,074 -
0
votes2
answers239
viewsA: Dataset with cloister Where like '%' @parametro Visual Basic 2012
You need to see in the @Tobymosque reply whether Where is doing with the right fields probably your cod_client is int and the cliente_cnpj must be string. That one WHERE cod_cliente LIKE…