Questions tagged as 'c#'

1
answer

Error saving list of MVC objects C #

According to the post Edit list of objects with form POST in MVC C # I was able to make my application show the values. But trying to save the data gives the error: The operation failed: The relationship could not be changed because one or m...
asked by 27.08.2014 / 20:34
1
answer

Checklistbox when loaded dynamically does not mount the check's

When it was manual, the check's (check boxes) were all ok. As I now mounted via jquery and controller, it no longer mounts the check's, it stays as a listbox without being able to make selection. See below my code. My jquery: function Preenche...
asked by 26.08.2014 / 18:12
1
answer

Retrieving MultiSelectList MVC values

I'm not sure how to handle data received via MultiSelectList . Also, I can only select more than one option in View if I press CTRL. Is there a way for the user to click on more than one value without necessarily holding the key?...
asked by 08.08.2014 / 15:52
1
answer

Find files on Xamarin Android

I'm putting an xml file inside the project but it is not being located by my XmlTextReader where in the project should I put this file and how can I find it in the emulator folder? I'm using Xamarin Android.     
asked by 07.08.2014 / 16:29
1
answer

Format cell in DataGrid at runtime C #

I'm creating a DataGridView automatically with a time column and I'm using the 00:00 time format, as follows. dgvhorario.ColumnCount = 1; dgvhorario.Columns[0].Name = "Horário"; dgvhorario.Columns[0].DefaultCellStyle.Format = "t"; dgvhorario.C...
asked by 15.08.2014 / 16:33
1
answer

Wait for response of a method to proceed

I have the following problem, I'm making a popup to display information on the screen, almost the same way as a ShowDialog() , being this way: GeneralPopUp popupErro = new GeneralPopUp("Titulo", "Mensagem"); GeneralPopUp.ACTION_TYPE at =...
asked by 19.08.2014 / 15:38
1
answer

Sorting in Crystal Report with sub reports

I have in my report 2 subs reports but I want to sort by the field "Student" of the Main Report but I am not getting even though I already bringing the query it ordered with I would like. I tried to sort by Group Section from the Insert...
asked by 31.10.2014 / 12:22
1
answer

DropDownList and ListBox - Retrieving Values in Editing

In a CMS I have a DropDownList and a ListBox that work regularly in the registration field, but do not bring values in the edit field. View <div> Tipo de Curso<br /> @Html.DropDownList("TipoCurso", ViewDa...
asked by 23.10.2014 / 19:21
2
answers

Error Could not load file or assembly Microsoft.Web.Infrastructure

I created a website in C #, the same one runs on my machine, but when I publish and update on the server via FTP (Filezilla) this message appears, can someone give me a hint how to solve?    Could not load file or assembly 'Microsoft.Web.Infra...
asked by 26.10.2014 / 20:51
1
answer

Procedure with out parameter (SYSREFCURSOR) with Entity Framework

I have a problem that is making me sleepy. I am performing a database migration, from SQL Server to Oracle, in a C # application. The above application is using the Entity Framework to access the database. I have been able to migrate the data...
asked by 21.10.2014 / 20:35