Questions tagged as 'c#'

1
answer

Area Routes in ASP.NET MVC?

I'm working with areas but it is not working the route and I created 2 areas , inside one I created a folder called Cadastros and inside the other a folder called Tabelas . RegistrationsAreaRegistration.cs namesp...
asked by 30.07.2017 / 04:11
1
answer

How to compile / build a DLL?

I made a program in C # in Visual Studio 2017, but by default, when I compile the code, it creates a .exe file, but I would like the code to compile a .dll file. How can I do this? Example: I created a program called ccl...
asked by 29.07.2017 / 18:36
1
answer

XML Serialization, how to do

I need to generate the XML in the TISS standard of ANS. I have taken the available schemas in the site / a>, and by xsd2Code generated the classes of tissV3_03_02. I instantiated an object of type ctm_guiaLote and now I need t...
asked by 31.07.2017 / 17:26
1
answer

Error making an insert in sql server with c # [closed]

I'm trying to make an insert into a table and I'm getting an error message. Error Image: Code:privatevoidetqmanual(){conex.Open();SqlCommandcomando;StringBuilderQuery=newStringBuilder();Query.Append(" SELECT...
asked by 03.08.2017 / 14:01
1
answer

I can not add a reference to my program

I need to use this structure. The problem is that I can not find it in the .NET Framework. I already added a reference to System.Numerics and I put using , but I still can not use it. I also tried to add a reference to System.N...
asked by 30.07.2017 / 00:36
1
answer

end process

I have a dilemma here in my code a few days ago, I'm developing a routine that reads data from a spreadsheet and populates the data in the cshtml of the page, I'm programming in MVC5 with Razor. The code I created is: public ActionResult Index...
asked by 02.08.2017 / 17:16
2
answers

What requirements do I need to run a C # program on a client machine?

I'm testing my application in c# on the client machine, it works normally, my problem is only in printing the reports, when printing this generate this error: Ocorreu uma exceção sem tratamento no aplicativo. Se você clicar em continuar...
asked by 02.08.2017 / 11:21
1
answer

Transform a byte vector into DataSet

I'm reading an excel file (xls, xlsx, csv) and displaying its contents on a new page using DataSet. I can do it for xls and xlsx, but for csv it's not rolling. public static DataSet result; public static void prepareFile(HttpPostedFileBase fi...
asked by 24.07.2017 / 22:36
1
answer

Returns query value in a variable

I need to return the value of a query of the query in an int variable, to be able to compare with my TextBox, but I can not make the comparison because it can not compare integer (textbox) with a group of methods (jquery), follow my code below....
asked by 21.07.2017 / 22:17
1
answer

Catch a list in the View and move to the C #

I have 2 lists that come from the database, one from technician and one from suppliers. I can not get it from View and switch to Controller. And how to receive this list in the controller Followthecodebelow:ControllerpassinglisttoviewasViewB...
asked by 27.07.2017 / 03:22