Posts by Denilson Carlos • 190 points
18 posts
-
1
votes2
answers548
viewsA: Send object list to View, by Viewbag Asp.net
Check the list of your database: public List<Produto> ListaProduto() { var listaProduto = new List<Produto>(); var objLista = context.TB_Produto.ToList(); foreach (var item in objLista)…
-
0
votes1
answer163
viewsQ: Ajax with Antiforgerytoken does not pass the data
I’m having trouble putting the AntiForgeryToken on my date of json. Follow the code that I pass the information from my data to the controller hassle-free. var todos_servicos = { ServicoFornecedor,…
-
1
votes1
answer75
viewsQ: Create a table or several in SQL Server?
I have tables in my database: Orcamento, Maquinas, Veiculos and Acessorios. I need to record the costs of each of them, for example each table will be recorded a daily cost I create a table called…
-
0
votes3
answers135
viewsA: What is the correct MVC concept to be addressed?
Good morning I would do so, create an Address class, a Contact class, and one of each table in the database, I will use these two examples because you can use where you want. In the Endereco class…
-
0
votes0
answers36
viewsQ: First Field is null in Each JQUERY
The first fields are appearing null when I step into the controller follows the code HTML <div id="divItensServicos" class="price-box collapse"> <h3>Itens de Serviços</h3> <div…
-
1
votes1
answer46
viewsQ: doubt sore or each JQUERY
I’m breaking my head and I can’t find the problem have a table that is created dynamically when I scan it shows the 0 position as null and after that starts to appear normal html screen row creation…
-
1
votes1
answer29
viewsQ: Go to a new view with Json
I am deleting with Ajax and returning a Json. How do I open a different view? Follow the code, put the url no longer works: View $.ajax({ url: '@Url.Action("ExcluirPedidoCompra")', // to get the…
-
3
votes5
answers14934
viewsA: Sort Datatable Datetime Field
you can use it like this To solve this problem, as stated in the reference, must include the plugins //cdnjs.cloudflare.com/ajax/libs/Moment.js/2.8.4/Moment.min.js…
-
2
votes1
answer3085
viewsQ: Grab a list from the View and move to the controller c#
I have 2 lists that come from the database, one from technical and another from suppliers. I’m not able to take the View and pass to the Controller. And how to receive this list in the controller…
-
0
votes2
answers811
viewsA: How to close splash screen?
You can put this code "Application.Exit();" at Formclosed and Formclosing to kill your Splash app for good
-
0
votes1
answer458
viewsQ: Doubt about Reportviewer C#
Good evening, I wonder if you have how to put a text in the report for example I am making a receipt and put a textbox and I would like to put everything in the same line for example I received…
-
0
votes1
answer57
viewsQ: C# com Storeprocedure
Good evening guys I’m making a system for college and I’m trying to do with Procedure more is not recording on the bench I think there’s something wrong but I don’t think what it is I tried to use…
-
1
votes1
answer402
viewsQ: When choosing a company connect to the Database
Aguem could help me I’m doing a project to deliver this year in college in 4 layers I have a login screen and when I type user and password I choose the company I should work example Company A,…
-
0
votes1
answer68
viewsQ: Doubt to Load Combobox from an account with the sub account
I made a select to fetch an account and upload the sub account and would like your opinion to see if this is how you do it code private void cbbConta_SelectedIndexChanged(object sender, EventArgs e)…
-
2
votes1
answer634
viewsQ: Conditional formatting on a gridView
I have a gridView where it’s loaded, from my SQLServer, all bank information. My question is this. can change the color of the source when a date is less than the date of the system (for example,…
-
0
votes1
answer126
viewsQ: When I close the Form executes the Leave event
In my application I created an event Leave in the maskCnpj, when I close my form I have to click 3 times in the window messageBox there’s some way to settle this? if (maskCnpj.Text != " . . / -") {…
c#asked Denilson Carlos 190 -
3
votes4
answers7370
viewsA: Validate content from Textbox
personal I did something that worked I will post here to help other users //não permitir augumas coisas if (char.IsLetter(e.KeyChar) || //Letras char.IsSymbol(e.KeyChar) || //Símbolos…
-
0
votes4
answers7370
viewsQ: Validate content from Textbox
I have the fields TextBox, for example: txtValorCompra would have to be typed by the user 98,90 and it can’t be letters txtNumero integer input nome only letters. You’d be able to do that on the…