Questions tagged as 'c#'

1
answer

With export HTML string to PDF Compressed (zip)

I have this string: <HTML><HEAD></HEAD><body><FORM method="post"><table><tr><td>Nome:</td><td>JOÃO DA SILVA</td></tr><tr><td>NOME:</td><td>MARCOS...
asked by 27.05.2017 / 19:56
1
answer

Generate more than one PDF in memory and export it in a compressed file

Currently the code below exports and compacts the PDF one at a time and I need to export multiple PDF into a compressed file public ActionResult PDFTodosMesAtual(ProcessamentoRegistros _processamento) { try {...
asked by 31.05.2017 / 12:35
1
answer

Left Join in LINQ

I have the representation of 2 classes. 1st class: using System; using System.Runtime.Serialization; namespace WebService { [DataContract] public class PessoaDados { private Nullable<int> id; private str...
asked by 30.05.2017 / 15:20
1
answer

a local variable 'texture' can not be declared in this scope because it will give a different mean to texture

I'm new to C # script in Unity3D I get an error in EditorFacebookMockDialog.cs :    a local variable 'texture' can not be declared in this scope because it will give a different mean to texture   how can I resolve this error? The co...
asked by 08.11.2016 / 14:26
3
answers

How to mount a lambda expression and pass it by parameter to a generic function?

I need to pass two parameters to a generic function that returns data from the database and select only a few specific columns to display in a DataGridView . public List<TEntity> GetAll(Expression<Func<TEntity, bool>> P...
asked by 07.11.2016 / 09:27
1
answer

What am I doing with this method?

I have the following method: [HttpPost] [ValidateAntiForgeryToken] public async Task<ActionResult> Criar([Bind(Include = "CategoriaId,Nome")] Categoria categoria) { if (ModelState.IsValid) { categoria.CategoriaId = Guid.N...
asked by 30.11.2016 / 20:25
1
answer

Fill a select with callback $ getJson Asp.Net / JQuery [duplicate]

What I need to do is the following, I have a select with States, when the person changes that state I need to fill another select with the Cities. This is the state select:      <div class="input-group">...
asked by 08.12.2016 / 12:09
2
answers

How to display the GetAll data I performed in an HTML table? MVC C # HTML

I'm running a simple mvc site, by college. I have to make a crud. I created a getall method that lists all existing clients in a list. How can I step the same for the view? I tried the line below but I can not use .. @model List<cliente&...
asked by 22.11.2016 / 03:49
1
answer

Run program in a certain folder in IIS

I would like to know how to run an exe or jar program in a given IIS folder, through the C # .net core code. It would have to be a synchronous call, that is when the C # performs the call of the jar or exe or bat has to wait the processing and t...
asked by 05.06.2017 / 19:40
1
answer

Animate a side menu in WPF

Hello, I am now entering the WPF world (I come from MVC), and I have a question: I am trying to animate an expandable menu, that is, when the user clicks the button, it expands and when it clicks it again it hides. I even managed to do the ani...
asked by 01.06.2017 / 20:15