Questions tagged as 'c#'

1
answer

How do I pass a View value to the Controller in ASP.NET core?

I want to move from View <table style="width:100%"> <tr> <th>Serviço</th> <th>Data</th> <th>Feito</th> </tr> @{ foreach (var item in ViewBag.servico) { <tr> &l...
asked by 14.09.2018 / 00:25
0
answers

Getting information from an HTML page in C # (WebBrowser)

I'm trying to get information from a website and I'm having trouble getting the correct result. Basically, I need to get the software version from the site: link What interests me is the line: <span class="download-version__version"...
asked by 14.09.2018 / 15:46
1
answer

Error - C # string for Crystal Report

When trying to pass the string from C # Windows Forms to Crystal Report following the procedure of the second image and the code below the crystal report shows the following error! Visual Studio Community 2017, Mysql free and Crystal Report Sap....
asked by 15.09.2018 / 01:49
1
answer

DataGridView with DataSet Custom Value

Hello, good morning. I would like to ask you for help on the following situation: I use the PostgreSQL database integrated with Visual Studio Enterprise with the (PostgreSQL Integration) Npgsql package. For those who do not yet know this pa...
asked by 13.09.2018 / 15:58
0
answers

Display two ActionResults of the same Controller on the Index page

I'm already displaying a table in the Index, but I want to display another table from the same controller. I created a PartialView called PartCorteCabos() and created a View of it. I tried to make the call using @Html.Partial()...
asked by 19.09.2018 / 13:28
0
answers

Foreign key transaction in C # and Entity- [closed]

Well, in my application I have the Context class that owns the Shopping DbSet and the Products DbSet. It turns out that in my DB table, Purchases has an FK that takes the Product ID in the FK_ID_PROD column. Question 1: How will the mapping o...
asked by 20.09.2018 / 04:21
1
answer

Test Plans in VSTS

I'm trying to create Tests Plans in VSTS (Free version), but I'm not finding the location indicated in the documentation: Instead,Igetthisinterface: Does not the free version of VSTS have the testing feature?     
asked by 15.08.2018 / 02:10
0
answers

Entity Framework Conflicting changes to the role of the relationship have been detected

I have 2 objects that use a third party in common and I have a problem in the routine: 1) Creating a new Manufacturer var fab = new Fabricante(); DBSet.Add(fab) //Sem SaveChanges Then searching for the existing item and creating a new...
asked by 14.08.2018 / 22:56
0
answers

Render Image with Rotating Pdf (Asp.net Mvc)

I have an Action responsible for generating the PDF using Rotating ... The action code is as follows: public ActionResult PDFPadrao() { string header = Server.MapPath("~/Views/Relatorio/Header.html"); string customSwitches...
asked by 20.08.2018 / 14:03
0
answers

.Net application losing reference [closed]

Good afternoon. I have a web application developed in C # that uses connection to Mysql bank. I added the reference, the codebehind recognizes the reference to Mysql without problems. Except when running the application, it gives the error: Erro...
asked by 20.08.2018 / 20:10