Questions tagged as 'c#'

0
answers

Generate Pdf via ajax.POST with Rotativa

I want to generate a .pdf file using Rotativa, my ajax call is as follows: $.ajax({ type: "POST", url: "Home/Index", data: { nome: inputName, laudos: laudos, imagem: imgSelecionada },...
asked by 25.08.2018 / 21:11
0
answers

Query on table name by Reflection

I'm trying to make a query in the table, that its name will come by method scope, but it does not allow me to use Select(); or Where(); System.Type referenceTableType = System.Type.GetType("MeuProjeto.Model." + typeRequest.Refer...
asked by 17.09.2018 / 14:27
1
answer

Return to beginning of phase in C # [closed]

HereistheobjectthatIwantittogobacktothebeginningHere'sthecharacterWellguys,I'mabeginnerandIneedtodeliverthisgameprojectforthismonthandIwantedtoseewhenthecharactertouchestheblockhereturnstothebeginningofthephase.Idothisbuttheprogramdoesnotrecog...
asked by 17.09.2018 / 17:59
0
answers

Format cell size in .csv files

Gero esse csv public ActionResult geraExcel() { List<vwFinancingReportViewModel> lista = new List<vwFinancingReportViewModel>(); lista = dadosPlanilha(); StringBuilder sb = new StringBui...
asked by 18.09.2018 / 19:35
0
answers

Controller access problem [closed]

ApiController [Produces("application/json")] [Route("api/[controller]")] public class ClienteController : Controller { private IClienteRepository _ClienteRepository; public ClienteController(IClienteRepository clienteRepository)...
asked by 21.08.2018 / 16:44
1
answer

Attribute Reading Problem in C #

I have the following problem, I have my ENUM class: public enum DataBaseType { DATA_BASE_NAME, SERVER_IP_NAME, PORT, USER_NAME, PASSWORD }; I have my Attributes, in which you have this ENUM: public class Connect : System.Attribute {...
asked by 21.08.2018 / 23:07
0
answers

Change the Font of a ListView that was created in Fragment

Where do I change the font type and color in the ListView control? The ListView controls are in main.xaml as below: <ListView android:id="@+id/left_drawer" android:layout_width="240dp" android:layout_height="match_parent"...
asked by 21.08.2018 / 16:37
1
answer

ContextCompat.CheckSelfPermission .NET Standard 2.0

I'm breaking my head and looking for an example code that asks permission to some recourse (camera, GPS), and everyone I meet makes use of ContextCompat.CheckSelfPermission, however the Xamarin.Android.Support.Compat package is incompatible with...
asked by 30.09.2018 / 00:57
0
answers

ASP.NET Button only executes method when clicked multiple times

Hello, I'm facing a boring problem, as I have a function on a page to cancel weighing. Weighing Why this page is an application that works internally by communicating with a balance over the network, collecting what is being weighed or not. W...
asked by 28.09.2018 / 23:25
1
answer

DataBase First approach with Lazy Loading disabled?

I'm going to start a project and the Sql Server database already exists so I'll take the Database First approach as an example of this article Entity Framework Tutorial . Home I will create the .emdx file and import the respective ta...
asked by 29.09.2018 / 23:59