Questions tagged as 'c#'

3
answers

Detail of an item of different models in entity framework

I'm really new programming and I'm constantly encountering problems, I currently have a table where I put data related to students, house row has a button that allows me to see more information related to the student but there is also related in...
asked by 15.11.2018 / 00:14
1
answer

How to add elements dynamically to a form c # from a class

Being more precise, I am trying to add (at the moment) some buttons to a form of c #, my dilemma is that I have no idea how to add these elements from the default class that has all the forms of c # , and the examples that I have seen have not w...
asked by 14.11.2018 / 05:03
2
answers

decimals from c # to sql server

rephrase my question that is more accurate, I try to insert a decimal from c # to sql server. This is the click event of the button save the connection but does not do it private void btnBunifuGuardarCargoDirecto_Click(object sender, EventA...
asked by 13.11.2018 / 20:55
1
answer

How to solve infinite load cycle in a report viewer?

I'm trying to create a web report on a .aspx page, the report template is a .rdlc file. When I run the application, I fill out a bar graph with the same Datasource that I use for the report, however my report remains cycled in loading, calling t...
asked by 07.11.2018 / 22:51
1
answer

Pass array of inputs to a MVC controller

I have the following Ajax and HTML code. $("#filter_frm").submit(function (e) { e.preventDefault(); var data = $(this).serialize(); myChart.showLoading({ text: 'Cargando', color: '#c23531',...
asked by 16.11.2018 / 11:35
2
answers

System.Data.SqlClient.SqlException: Could not find stored procedure

I'm trying to do a WebMethod that gets me all the information from a table. public void HelloWorld() { var Lista = new List<Atributos>(); using (var con = new SqlConnection(cnn)) {...
asked by 15.11.2018 / 23:01
1
answer

List matching with boolean return

I have two lists IEnumerables which I must compare to make the ids of the lists are projected on a grid, the ids are team professionals and the comparison is for when two professionals are selected, the list return the equipment wh...
asked by 05.11.2018 / 21:40
1
answer

WPF and C # pop-up windows

Good morning community, I have a question, since C # with WPF it is possible to show messages to users who are using the application, ie send a message saying "Please leave the system" and show it to the users, regardless of the menu they hav...
asked by 12.10.2018 / 23:37
1
answer

Save dates with hours with 12-hour format in mongo with c #

I have a date but when I save it mongoDb puts me the time of the date in 24 hours or military time format. Example: The date is this {6/04/2017 3:03:00 p. m.} and it keeps it that way {2017-04-06 15:03:00.000} What...
asked by 12.10.2018 / 19:00
1
answer

Automapper how to implement correctly

I am using automapper 7 but the documentation of this version is not very explicit I have implemented in this way. 1) I declare at the class level. private MapperConfiguration _config; 2) Implement in this way to map from one entity to a...
asked by 17.10.2018 / 22:12