Questions tagged as 'c#'

0
answers

how to get the id of the object that I just saved with EntityState.Added (C # Linq)

I have a function that receives generic objects to save new data with EntityState.Added but I want to add that I return the object with its assigned id public void addDataObject(object obj) { _dbContext.Entry((TEntity)obj).State = Syst...
asked by 10.07.2018 / 16:57
1
answer

How do I load the content of a Spinner into a TextView?

What I want to do is that when I load the content that exists inside the Spinner I am loaded in a textview, this is the code where all the data of the spinner is executed, as extra data is connected to a MySQL database. class DataParser : Asyn...
asked by 09.07.2018 / 05:20
0
answers

I can not Create a reminder in Google Api Calendar from C #, always put the reminder by default, and send it in False (UseDefault = false,)

public Boolean CrearEvento(Eventos_ENT obj_evento) { try { UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync( new ClientSecrets {...
asked by 19.07.2018 / 15:25
1
answer

how to load two models to the same view from a third model that contains both?

link first here I leave the project uploaded to github .. second here the code // este es el modelo que contiene ambos modelos namespace MyFirstWebsite.Models { public class Modelo { public List mod...
asked by 10.07.2018 / 14:50
0
answers

System.Diagnostics.Process.Start does not work in IIS

When I run System.Diagnostics.Process.Start from my ASP.Net application locally (from visual studio) it works, but when I run it from localhost in iis it stops working. Someone knows why and how I can do it to work in IIS     
asked by 12.07.2018 / 17:43
1
answer

Load Model Variable from JavaScripts

I have a Razor C # View in which I have a button. When I click on the button I capture by means of JS its respective ID, what I want is for that ID obtained, to be loaded in a current Model Attribute, for example @ Modelo.Id my button: <...
asked by 12.07.2018 / 17:59
1
answer

upload combobox from mysql

I'm trying to load two values of a table into a combobox What I need is that in my combobox the value nom_lugar is shown and that the id is assigned as a value to be able to enter it in the bd DateTime date = DateTime.Now;...
asked by 05.07.2018 / 21:41
0
answers

Access data from an application on asp.net by means of another application in c #

I have a system made with asp and visual basic 2008, and I have another application in c #, I want to access the first application and be able to use its methods. How can I do this?     
asked by 04.07.2018 / 16:40
0
answers

how to configure visual studio 2017 with the auto sync css?

happens that the CSS code works only in explorer and edge but not in chrome or firefox and I saw that there is a way to configure the "auto sync css" but I do not know how to do it, I do not know if I need to install some Ngget, is the first tim...
asked by 04.07.2018 / 19:31
0
answers

Can I change the ENTRY style in xamarin?

Good morning, I want to know if it is possible to give styles to the ENTRY field of Xamarin.Form, the only thing I can do for css or Setter is to change the background color and the text color. I appreciate the help or where I can investigate....
asked by 04.07.2018 / 20:23