Questions tagged as 'c#'

1
answer

UWP Horizontal alignment of flhos in a RelativePanel

I'm creating a HambugerMenu similar to Win10 Apps. The base of HambugerMenu is SplitView and to distribute the children in SplitView I opted to use a RelativePanel so I can choose which menu items will be at the top and whic...
asked by 06.01.2017 / 01:04
0
answers

ItextSharp - That assembly does not allow partially trusted callers

I've been trying to solve this problem for days, to no avail. I saw that many people have solved this problem by compiling the itextSharp dll by adding the [assembly: System.Security.AllowPartiallyTrustedCallers] line in the assemblyinfo.cs file...
asked by 12.12.2016 / 14:55
2
answers

Entity Framework is saving duplicate values when saving entities with relationship N to N

I have an entity called Book that has among other attributes a list of categories. In my model a book can have multiple categories and vice versa, so we have a N relationship for N. The EF therefore creates the books table, the category table an...
asked by 12.02.2014 / 22:21
1
answer

Return JSON with WEBAPI

I'm creating a WebApi where its return is the next. [{ "$id": "1", "Operadora": { "$id": "2", "Contato": [{ "$ref": "1" }, { "$id": "3", "Operadora": {...
asked by 25.01.2017 / 15:09
0
answers

Web alert in script c #

I'm developing a web system in asp.net and I came across a problem. In return for your Catchs, I return an error via an alert to the user like this: try{ ... } catch(Exception ex){ Response.Write("<script>alert('Erro ao adicionar...
asked by 16.01.2017 / 20:17
1
answer

How to display, in treeview format, only the folders and subfolders, and the contents of both, that are on the desktop?

Well, guys, I'd like some help out of favor I made a file explorer that aims to map all the folders, subfolders and the files of these folders and subfolders according to the letter that is selected. The problem is that by selecting any letter...
asked by 17.01.2017 / 06:32
1
answer

ISession + NHibernate (no session or session was closed)

In a WindowsForms project Using standard repository, in a generic class I have the following method: public IList<T> Listar() { using (ISession session = SessionFactory.Instance.GetSession()) { return (from c...
asked by 17.01.2017 / 14:12
0
answers

C # Drag and Drop without a specific event

I'm developing an application in C#(WPF) and would like to know if anyone knows how to get the drag n drop mouse data without any event being triggered. Is there any way to return this data from the dragndrop of the mouse...
asked by 02.01.2017 / 19:57
0
answers

How to perform button action within Listview Android C #

I created a data query android application, where they have the layout and adapter ready to do data crud, but the crud operation worked when data is entered and queried. I was unable to perform a change of data via button that is inside a querie...
asked by 08.12.2016 / 17:58
2
answers

How do I not repeat the value of a html cell

How do I not repeat the value of a cell in a html table? For example I do not want to repeat the value of cell **DataPedido** The query that will return the data is this: var _listaPedido = from _pedido in _pedidoAuxiliar...
asked by 08.12.2016 / 10:56