Questions tagged as 'c#'

4
answers

Register sale with its retail detail through transactions in a stored procedure MYSQL

I'm trying to register 2 tables through transactions in MySQL and I have a table VENTA , to which I put as a field the field id_venta and is type int autoincrement, plus I have the table DETALLE_VENTA , which has as FK...
asked by 01.07.2016 / 20:01
1
answer

Deleting the last row of a DataGridView

I have a DGV in which I enter data directly but when I create a new row but I precede the escape key is pq I do not want to enter data but there is a blank row created then that row I want to delete, this is my code. Creating row. private void...
asked by 02.05.2016 / 21:56
2
answers

Can I apply Devexpress Skin to a Visual Studio form, C #?

You can put the Devexpress Skin change option on a visual studio form, it's something like that     
asked by 03.04.2016 / 03:50
1
answer

In ASP: NET MVC 4 how to show how many records are being processed when uploading an Excel file?

I have the following question and maybe someone has already implemented it and can help me, they will see in languages like PHP I can be sending in what record it goes when I upload a file and this I'm showing via a progressbar or a message of "...
asked by 11.03.2016 / 23:30
1
answer

an object reference is required to access non-static field method or property c #

I have a private method that returns me as a result of the execution of a data set. What I want to do is reference in this method a textBox that I have in the main button of my Windows Form application. For the user to manually enter the 'Cap...
asked by 07.04.2016 / 23:05
2
answers

ObjectContext management goblal for EF for a Web Application in .NET

How to emulate a Unit of Work using EF4 for a web project and have a unique ObjectContext to be able to access it globally in the application?     
asked by 28.01.2016 / 00:07
2
answers

Save a GoogleMaps image on server with ASP.NET MVC 4 and C #

I'm doing a site where I use Google Maps API, I generate coordinates and I search for a specific site, then I take a site capture with html2canvas to generate an image in <img> , my question is: How can I take this image to...
asked by 25.01.2016 / 19:06
1
answer

Change status of an AppBarToggleButton in C # (UWP)

I have a menu created with AppBarToggleButton with property IsChecked="True" . How do you make C # to activate or deactivate your "checked" status?     
asked by 08.01.2016 / 23:31
3
answers

There is no ViewData item of type 'IEnumerableSelectListItem' that has the key

Good afternoon friends. I'm doing a Demo of a solution in Visual Studio with C #. The project manages an architecture pattern of 5 "layers (I do not know if that's the technical name)" , which are: Entities, the data (Data Access an...
asked by 05.02.2016 / 16:48
2
answers

Regex to remove accents and grave accent from a txt

I would like to know what regular expression I can use, I have a txt from which I have to remove the vowels labeled (Á, É, Í, Ó, Ú), single lines (',') and replace with the same vowel without tilde or space (_) but without changing the fact that...
asked by 04.01.2019 / 00:55