Questions tagged as 'c#'

1
answer

Use viewbags for metadata or place them in a ViewModel

In the scenario below, I have a View that depends on some ViewBags to fill options on selects html . When performing POST and in case something goes wrong in the register, the user is redirected to the same...
asked by 06.05.2015 / 13:18
1
answer

What is the best way to pass information to View?

I have the following code: public ActionResult AtualizaCliente(int id) { ViewBag.idFoto = new SelectList(dao.fotos, "idFoto", "Foto"); ViewBag.idInformacao = new SelectList(dao.informacoes, "idInformacao", "titulo");...
asked by 05.05.2015 / 04:27
1
answer

How to use a theme in wpf?

I'm trying to use a WPF theme package, but I can not call it, when I do the use it says it's missing the reference and I can not find any tutorials or anything current about it. Itriedtoinstallusingnugetandthethemesofthatlink link NOTE: I...
asked by 22.05.2015 / 20:18
1
answer

Search in a form and bring the return to the form that called

In my college project, I'm doing the product registration. All right. My problem is loading the supplier in the product register. I created a form frmCadastroProduct and a Form frmCadastroEntry in the product register when I click on search the...
asked by 23.05.2015 / 00:07
2
answers

doubts about localDB in MVC applications C #

I made a post here about where the application stores information from the Register template that comes in MVC applications when we create a new project. Well, the question would be: In order to use this information, to work with them,...
asked by 27.05.2015 / 17:48
1
answer

Internationalization, Localization and Globalization

I have a project that needs to work with internationalization, where the web application needs to be available in at least Portuguese and English , and perhaps also in Spanish. My biggest difficulty with this understanding is that when I s...
asked by 23.01.2015 / 12:56
1
answer

How to open a .Net dll

I arrived at the company and already got a program in progress and the previous developer left the company. The program is well done. The executions of procedures and tables are within dll and I need to see the code written there i...
asked by 14.01.2015 / 14:06
1
answer

Is web tax printer possible? [duplicate]

I'm implementing a system for issuing invoices with fiscal printer in C #, but would like to know if the same is possible via web using JavaScript HTML, CSS etc. How would I do this? Through which tools and resources?     
asked by 27.01.2015 / 01:32
2
answers

asp.net mvc Bad Request

When using the HttpStatusCodeResult class as a return to a Action , how do I redirect the user to a custom page based on the error?     
asked by 20.01.2015 / 19:04
1
answer

Problem when storing decimal values in SQL Server

I have a decimal field (18, 3) and in the application I use a JavaScript plugin to format the values entered, so I pass the value so pro SQL Server 45,000,000,000, when I look at what was registered was this 45000000000.000, or I mean, he put 3...
asked by 26.11.2014 / 17:29