Questions tagged as 'c#'

1
answer

Image stored in the bank is not being displayed in View

I'm trying to display an image that is stored in the database. When the Photo field (of Image type) of the table is null, I display a default image that is stored in the directory. The problem is that the images coming from the database are not...
asked by 06.11.2015 / 15:16
1
answer

C # MVC RouteBase routing too many redirects

I have a dynamic all system where I get all my paths , controllers , views and areas > from BD . My problem now is when I try to access a page it returns me too many redirects response . What happens in this area is: User...
asked by 26.11.2015 / 14:00
1
answer

Picture on the WPF menu with C #

I have a problem, I created an application in WPF, and I put a menu that will have images in the items. When I view the image in VS it is ok, but when I run the application the images do not appear. No source is this way? <Image Source="Ima...
asked by 26.11.2015 / 14:33
1
answer

Javascript function does not execute PageMethod

I'm calling a PageMethod in a Javascript function, however it goes straight to the end by not getting into my C # function. Here is the code below: <script type="text/javascript"> function enviar() { if (document.getElementBy...
asked by 13.11.2015 / 00:29
2
answers

Write data in the database (Value member and Display Member)

I'm having trouble writing this data in the database (Postgresql). In case the data you would like to save are: Customer name Origin, Client name Destination, Order date, Payment date, Confirm payment, Payment method and the Total label . Bu...
asked by 12.11.2015 / 16:24
1
answer

LINQ TO XML Query with Optional Element

Hello everyone, I am having a question about displaying the data from an XML file through a LINQ query , the problem is that I am trying to query the person's data but the and then the NullReferenceException and Endereço and NullReference...
asked by 30.10.2015 / 19:32
1
answer

How to disable the keyboard in C # Windows Form?

Hi everyone, I'm experiencing a problem with my application when I press the ALT key, I'm not expecting any kind of interaction through the keyboard, but even then this key only gives this error So I do not know why this error, I think it's...
asked by 17.11.2015 / 19:52
1
answer

Change data in DB4O in C #

How do I change a data of a "table" created in Db4o? For example, I have the following object written in DB4O: Nome = Emerson Senha = Teste I want to change only the Password data for example from "Test" to "New Test", how can I change t...
asked by 16.11.2015 / 15:00
1
answer

View passing date to Model in wrong format

I am using Bootstrap-Datapicker as the date field on my form and globalizing with moment-with-locales . The configuration I used is as follows: $('.datetimepicker').datetimepicker({ locale: 'pt-br', format: 'L' }); T...
asked by 14.11.2015 / 21:41
1
answer

How to update a TreeView of directories in C #

I have a TreeViewMS component (the one with Multiple Selection) listing the system directories on a Form. I created an event on the Form that when pressed F5, this TreeView will refresh (if some new directory on the system or not). It even...
asked by 25.04.2016 / 16:29