Questions tagged as 'c#'

1
answer

Button in a View with MVC / Web API

When we put a button in a View, how do we trigger a click of it? I have this button: @model IEnumerable<CarregaDados.Models.Cliente> @{ ViewBag.Title = "Index"; } <h2>Index</h2> <p> @Html.ActionLink("Criar Usuá...
asked by 19.10.2017 / 16:25
0
answers

Email sending is leaving the path of the attachments in the body of the email

I would like some help! I made a class to send e-mails in my application, where reports will be generated to be sent in PDF and XML format, but the e-mail is being sent with the path of the files in the body of the e-mail. and in my code there i...
asked by 08.11.2017 / 03:25
1
answer

C # join 3 tables using Linq?

I'm getting to learn C # and I'm picking up on some points. I have 3 Tables. Follow the models public class Tag { [Key] public int ID_Tag { get; set; } [Required(ErrorMessage = "Preencha o Nome")] [MaxLength(100)] pu...
asked by 08.11.2017 / 04:46
0
answers

How to display a single slice of a chart without repeating

I have a table called LibLights . This table I keep the items of a sale. In this table, I made a sum for Profit and Total. The problem is that, for example, selling with that ID: 100030087 it has 5 items and if I graph the sale, I will have t...
asked by 18.10.2017 / 11:43
0
answers

How to set value in a Textarea field using webbrowser?

I am trying to set a value in a field of type Textarea using webbrowser, but the value is not being set. I've tried the following ways; webBrowser.Document.GetElementsByTagName("p")[2].InnerHtml = texto; webBrowser.Document.GetElementsByTag...
asked by 17.10.2017 / 15:47
0
answers

Error opening aspnet page C #. Could not load file or assembly 'Microsoft.ReportViewer.Common, Version = 12.0.0.0

Good evening guys. I developed a website, which on a particular page shows a report. Locally it works normally, but when I run on the published page, it gives the error: Server Error in '/' Application. Could not load file or assembly...
asked by 18.10.2017 / 01:55
0
answers

Access FK attribute in Framewokr entity

I have the class Cliente which has a IList<Produto> and the produto class has a ClienteId (which is the FK) and a Cliente Cliente { get; set; } attribute. How do I access the Nome attribute of C...
asked by 16.10.2017 / 23:26
1
answer

Web-Service returning maximum quota exceeded. How to solve?

I'm consuming a third-party web-service. When I get the return of the service the following message is displayed:    The maximum size of incoming messages (65536) has been exceeded I have already researched forums for a solution, but I ha...
asked by 16.10.2017 / 12:54
1
answer

Wrap lines in table cells ASP.NET MVC C #

How do I not break the columns of a <table> in several lines, because I put a scroll and would like to leave the grid cells without breaking, but let the user use the scroll.   ViewTable@modelIEnumerable<Projeto.ERP.Model.Mod...
asked by 10.10.2017 / 18:43
0
answers

When sending a notification, how do I display the badge icon?

This is the OnCreate of my MainActivity. See that I have a badge with a value of 10 for testing. Now I need to do what, when sending a Notification, I can increment the badge icon with the amount of Notification being received by my App. The mes...
asked by 16.10.2017 / 01:28