Questions tagged as 'c#'

1
answer

Local Bank Storage Method

I have a local database on my desktop, I made an application development using C# and Asp.Net MVC and I thought I would only have the job of migrating to some MS SQL database when I was uploading the project. However, I need to...
asked by 16.10.2014 / 17:17
2
answers

Collect system resource information

I'm using S.O. windows, and C # programming language. How to collect system resource information in C #? processing, memory, disk. I am doing performance testing with multiple clients and a server using sockets, and I want the server to show...
asked by 19.03.2014 / 19:19
1
answer

Uploading multiple files using Uploadfy in ASP.NET MVC

How to implement multi-file upload with uploadf ? I find it very interesting to use the upload bars etc. is giving this error: Thisismycontroller: You may notice that you have many error messages as well. View Code: <script t...
asked by 13.03.2014 / 21:29
2
answers

GridView ASP.NET c # data from the same table

I have the following table in SQL with the following fields (id, name, day, week, active). id the primary key of the integer type; name nvchar day week nvchar; active bit; and I have the following data in the table 1; Joseph; Monday 1; 2; Joseph...
asked by 21.03.2014 / 19:50
3
answers

Pass ViewBag to _Layout

I need to pass a list to my layout where it is used on all my pages, would you like to know how I could do this?     
asked by 11.06.2015 / 15:20
2
answers

Query on a column with different values

In my project, I have a SELECT that returns me two names, but those names are different. In my command, I need to return these two different names that are in the same column of the database in an tag of an xml I am creating. How co...
asked by 26.06.2015 / 15:13
1
answer

Perform a redirect on Builder

How can I make a Response.Redirect() in a class constructor? public class FarmaciaController : Controller{ public FarmaciaController(){ if(!userLogin.usuarioTemPermissao("Farmacia")) Response.Redirect("~/PortalFarm...
asked by 09.06.2015 / 18:38
1
answer

How to check if all the data in my list exists in the database?

I need to get the files that are in a list and compare them with the files that are in a table in the database, and know if the amount of files in my list is the same amount as the table. using Dapper; public bool ValidarPessoas(List <in...
asked by 13.06.2018 / 19:58
1
answer

How to disable Ctrl + V from contextmenu?

In the textbox you can not paste, the following code works fine: private void Textbox_PreviewExecuted(object sender, ExecutedRoutedEventArgs e) { if (e.Command == ApplicationCommands.Paste) { e.Handled = true; } } The pr...
asked by 12.06.2018 / 18:13
1
answer

FileHelpers .NET CORE 2.0

I'm migrating an application to .NET CORE 2.0 and the application used the FileHelpers library, I logged into the github of the library and found that it has not yet been migrated to .NET CORE ... I wonder if you can use this library in a .NET C...
asked by 15.06.2018 / 19:48