Questions tagged as 'c#'

0
answers

Is there any events for the console like in WF?

I made a code to close the Console when F9 was tight, and I remembered that in Windows Forms there are events, which makes things like this much easier, I gave a search to see how to create events in the Console and only found some MSDN articles...
asked by 08.06.2017 / 02:14
0
answers

The if condition is not accepting in asp.net mvc razor

I want to do an update with a condition, however, it is updating the data without seeing the condition of if using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using BlogWeb.ViewsModels;...
asked by 26.05.2017 / 16:31
0
answers

Count number of files c #

Good afternoon! I have a listView with several checkbox's. I want to count all the checkbox files that are selected. I made the following code, but it is not working. if (listView.Items[j].CheckState == CheckState.Checked) {...
asked by 05.06.2017 / 15:32
0
answers

Id not accepting value asp mvc 5

Personally I'm trying to do a login logic but in a way without using the other asp mvc 5 technologies [HttpPost] [ValidateAntiForgeryToken] public ActionResult Cadastro(Fornecedor fornecedo, int? id ) { var acesso = db.Fornecedor.Any(...
asked by 05.06.2017 / 18:22
2
answers

dataGridView1_CellDoubleClick does not work!

I have the simplest function in the world and I can not make it work. When giving 2 clicks on any cell in my datagridview I want it to display the message "1" but it is not working! What's wrong? See my code: private void dataGridView1_...
asked by 16.06.2016 / 01:27
1
answer

How to bring information by clicking the dataGridView C #, and adding values from a column

Hello I'm having trouble creating a query from a gridview I used entity framework Well, I have a gridView it loads the Data normally In the TextBox below I want to get the name of the person that is selected put in the field and in the gri...
asked by 05.06.2017 / 18:02
1
answer

Picturebox and datagridview

I need help, I have uploaded images to bd, now I have the following problem: I put this code to select a row from the datagridview and populate the respective fields. txtIDMovie.Text = dgvMovies.Rows[e.RowIndex].Cells[0].Value.ToString();...
asked by 24.05.2017 / 22:38
0
answers

"Method Not Found" and "Method Not Allowed" using WebAPI and POST

I am developing a picking software where the user from a sales order (order) creates a pick list (which contain the products that the warehouse clerk will fetch and then transport the person to the house ). Whenever I try to create a new pick...
asked by 24.05.2017 / 22:05
1
answer

Adding javascript to webforms page

I have a page with method to insert a javascript into a page. public void ControleEtiquetaDermaClub(bool visualiza) { if (visualiza == true) { String jscript = ""; jscript = " $...
asked by 24.05.2017 / 19:38
1
answer

Visual Form Inheritance C #

I have created a base form with an appearance that I will use in all my system registration forms, done that, all the forms that I create for registers will inherit the base class. By doing this, I came across the following problem. Error...
asked by 02.06.2017 / 22:35