Questions tagged as 'c#'

0
answers

Recycle external pools in C #

I'm trying to recycle pools on external IIS servers from a C # code. After a search I found this method. string username = "user"; string password = "password"; string path = "IIS://ipServidor/nomeServidor/AppPools/NomePool"; using (DirectoryE...
asked by 05.10.2018 / 18:45
0
answers

Is Point in Attribute of Model Class possible?

This is an xml schema for requesting a WebMethod: <RetrieveClienteRequest> <model query=""> <keys query="" > <cliente.cnpj type="String"></cliente.cnpj> </keys> <...
asked by 05.10.2018 / 14:15
0
answers

Validate properties of objects in a collection. WPF MVVM C #

Let's say I have an ObservableCollection of objects of type Product, called Products. Each Product has the Unity, Quantity, and Description properties that will be linked to textboxes. That is, information can be edited by the user. My questi...
asked by 26.09.2018 / 20:48
0
answers

Phone Array Update in Database

I'm trying to update information in my database where I have 1:N between Clientes and Telefones , but I'm not able to perform such an update because sometimes it will be necessary to remove a phone that is in the database , s...
asked by 26.09.2018 / 20:08
1
answer

C # Foreach XPathNavigator makes add of the same values

I have recursive xml, I want to add the xml values to context but in the example of xml it adds certainty to the ClientCons but when it arrives to add Officers, it adds only the values of the first element of the Official. And there are 4 Offici...
asked by 26.09.2018 / 17:25
0
answers

Two ViewModels in a View

I have a problem, let's explain: I have a page called Index where I render all clientes of my database in a table, in that table there is an delete button that opens a Modal de Confirmação that creates a Form with...
asked by 25.09.2018 / 15:16
1
answer

WPF - Trigger on elements inside a wrap panel

I have a wrap panel that contains several dockpanels, and I need each dockpanel to change its background by hovering the mouse over it. I think creating a trigger for each element would not be appropriate. My sham is like this: <StackPanel&...
asked by 25.09.2018 / 15:23
0
answers

How to configure Checkboxes Materialize Css in Web application Asp.Net MVC

How do I configure Checkboxes in Asp.Net MVC Razor Since in the documentation we have the following configuration Materialize for checkboxes <p> <label> <input type="checkbox" /> <span>Red</span> &l...
asked by 24.09.2018 / 23:53
1
answer

Get the executable directory and save image to a folder inside this directory

I needed to get the executable path and save it to a folder inside the root directory where ".exe" is located, serving both the programming of the file in the "bin" and "debug" folder and the time to create the installer with the "inno setup" an...
asked by 25.09.2018 / 02:46
0
answers

Set monetary value field correctly in Asp.Net MVC

I'm having problems with monetary value in my Asp.Net MVC application and would like to know how to configure In class [Display(Name = "Valor Produto")] [Required(ErrorMessage = "O campo {0} é obrigatório")] [DataType(DataType.Currency)] pu...
asked by 28.09.2018 / 19:09