Questions tagged as 'c#'

1
answer

Error when running Updad-Database command

When I run the Update-Database command in the Package Manager Console, I get the following error:    Value can not be null.   Parameter name: entitySet I have only one model in the project for now public class Project { [Key]...
asked by 27.10.2017 / 15:01
1
answer

How to join with more than two lists?

I have three classes: class Cbo { public string ProfId { get; set; } public string Cbo { get; set; } public string Descricao { get; set; } } class Profissional { public string ProfId { get; set; } public string NomeProf {...
asked by 29.01.2017 / 19:26
3
answers

How to make visual form inheritance in Windows Forms?

I have a form base that will be form 'Father', with 3 buttons in it. Add, Delete, and Change. I'm going to use formbase to standardize my registration screens, so each registration screen when I click 'Record' will execut...
asked by 05.11.2015 / 16:28
1
answer

Execute a method when Webservice starts

I have a Webservice that is working normally. At this point there was a need to execute a method called "RecoverFile" that needs to be executed as soon as Webservice starts. This is a method to upload some data from the database when Webservice...
asked by 09.11.2015 / 18:36
3
answers

Generate PDF with Asp.Net MVC

Hello, in my application the reports are generated in Html, I would like to know a way to generate these Html reports in PDF.     
asked by 08.10.2015 / 21:19
1
answer

How do I add an element to a list?

What is the correct syntax for calling the Add_Pessoa method of the ClsPessoa class for a List? public class ClsPessoa { private static string PSTR_Nome = ""; private static DateTime PDT_DataNascimento; private static...
asked by 11.10.2015 / 22:29
2
answers

How to print in dot matrix printer on the client with a web application?

I have an application made in C # MVC with a routine to print plain text on the default printer. The RawPrinterHelper.SendStringToPrinter method that is described in this article has been used. Printing normally occurs when I run the ap...
asked by 23.10.2015 / 22:43
1
answer

How to pass text from textbox to report, with VS 2015, in C #?

I'm creating an app for the place where I work, which should print labels based on information I enter in a form I created. For this, I'm creating a smaller version, to test if everything I want works. I'm using Visual Studio 2015 Community w...
asked by 14.10.2015 / 00:42
1
answer

Accessing data stored in cookies?

At login, I store user information logged into a cookie (name, password, etc ...) How do I access this cookie and retrieve information from it? For example, I want the name of the logged in user to appear in the upper bar, my logic would h...
asked by 23.10.2015 / 19:02
2
answers

Adding text box and saving to the bank. (with C #, entityframework 6.1.3)

I'm doing a project in Visual Studio 2013, with EntityFramework version 6.1.3, MVC 4.5.0.0 and using ViewModel . I'm programming a page called payment condition. The creation page will have a text field nome , 2 radiobuttons : "t...
asked by 21.09.2015 / 16:04