Questions tagged as 'c#'

1
answer

How to call controller action?

I have the following code: function confirmaExclusao() { var decisao = confirm("Deseja excluir permanentemente esse item?"); if(decisao == true) { //Chamar a action para excluir } else { //Aqui não vai f...
asked by 04.06.2015 / 18:52
1
answer

Error message generating report

I'm making a report and giving an error message that I can not find a solution. Error: GeneratebuttoncodeprivatevoidbtnGerarRelatorio_Click(objectsender,EventArgse){SqlCommandcmd=newSqlCommand();SqlDataAdapterda=newSqlDataAdapter();DataSet...
asked by 01.06.2015 / 01:59
1
answer

Save photo in Windows Phone Gallery?

I am using the following code to save the image in IsolateStorage: String tempJPEG = "/Shared/Media/card.jpg"; using (IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication()) { if (myIsolatedStorage.FileExi...
asked by 18.07.2015 / 05:23
1
answer

Generate List from BinaryFormatter Deserialized Unity3D

Hello, I am creating a save system for games and would like to know how I can generate a list from a BinaryFormatter object? this file is formed from 3 information, and would like to generate a list with these values, follow the codes:...
asked by 01.06.2015 / 02:16
1
answer

How to load only the ID attribute in Many-To-One Relationship in EF?

I have two Many-To-One relationships in this class ( usuario and projeto ): public Atividade() { Projeto = new Projeto(); StatusAtividade = EStatusAtividade.NaoIniciado; TipoAt...
asked by 17.07.2015 / 16:40
1
answer

How to get data from a specific field in an XML using LINQ VB.net/C#

I have the following xml: <det nItem="1"> <prod> <cProd>01554</cProd> <xProd>La Aslan Velour 0001 </xProd> <NCM>55111000</NCM> <CFOP>5102</CFOP>...
asked by 17.07.2015 / 17:25
1
answer

Write a code on the magnetic stripe

I have an Evolis Dualys 3 printer that has the option to record a code on the magnetic stripe of the card, by the third party software the recording was successful, now I would like to make this recording by my application, someone already did s...
asked by 19.05.2015 / 15:55
1
answer

API for viewing places on the map

I need an API that works like HERE Maps, which makes it easy to query through a REST service. With it I can for example identify stores within a certain range. But I came across the problem that it does not provide this information when for exam...
asked by 16.05.2015 / 23:06
1
answer

Error in SaveDialog c #

Well, I have this excerpt of code in C # and everything is working, but I have an error that I still can not solve, as you can see in the image and in the code. Label1 is fetching text from a textbox, as you can see here: Copy value that is...
asked by 19.05.2015 / 13:33
1
answer

Identify via Windows Forms C # the URL that the user accesses

I have a LAN House and would like to do a graphical search of the sites that my clients access. For this, I need a way to capture the URLs that they type in the browser through a Windows Forms application in C #, has anyone made this solution...
asked by 21.05.2015 / 16:49