Questions tagged as 'c#'

0
answers

Create Partial for Table [closed]

I'd like to create a partial (to be called as @Html.Partial) by getting the id of the table and a collection of the data. But it would have to be totally independent. The part of C #, with reflection, I can make a good one, but I do not know how...
asked by 22.11.2016 / 22:37
1
answer

Problems with not null fields creation with FluentNHibernate

I have a problem creating fields using FluentNhibernate and Postgres. User Class: public class Usuario { public virtual int idUsuario { get; set; } public virtual string nome { get; set; } [NotNullNotEmpty] public virtual str...
asked by 01.10.2016 / 18:52
0
answers

List a restaurant, from the item that is saved in the database, within a table Cart

I would like to list a Restaurant, where items from this same restaurant have been stored inside the cart. Being that, when saving the product of the cart, it pulls with him the ID of the restaurant. Here is my controller that I did, but it did...
asked by 23.10.2016 / 04:54
1
answer

EntityFramework does not recognize Web transformation Config

In my solution C# , I use Web.config transformation to connect a specific data environment, but I'm having a problem with EntityFramework that can not recognize string de conexão transformed , only recognizes Web....
asked by 15.09.2016 / 16:32
0
answers

Button click event, added dynamically, does not work

I'm working on a page that loads a list of items into a GridView . Content is loading normally, but there was a need to add a cell with text and two buttons. With the code below you are adding the elements, however the click...
asked by 14.09.2016 / 21:08
0
answers

Use two CSS classes in C # Razor MVC [closed]

I'm wanting to use two CSS classes in Razor. Is it possible to do that? Because I can not. I'm doing the following: <div class="form-group"> @Html.LabelFor(model => model.ativo, htmlAttributes: new { @class = "control-l...
asked by 27.09.2016 / 19:01
0
answers

Variable loses value before operation C #

I have not read C # for a while, I am doing a simple code to perform simulations on demand and process data by applying FIFO. My problem is regarding the variable attributes of the Queue class, I debugged the program and noticed that when I run...
asked by 25.09.2016 / 18:47
0
answers

Open subpages in a given space AspNet Core

I have a page where I use @renderBody to open my main pages, however the need arose to get a submenu and I need the following pages to be opened in a certain space, but when I launch the asp-controller asp -action it opens at the @re...
asked by 10.09.2016 / 03:50
0
answers

AppHarbor + Quartz [closed]

I have an application in Appharbor (in C #), with only 2 buttons, one to start a job and another to stop it. I scheduled the job to run every 15 minutes, and to repeat forever (or until I force the stop), however, it does not run every 15 min...
asked by 28.09.2016 / 15:00
0
answers

Reportviewer Tablix e or Matrix Calculate value from a cell

I would like to know if you would like to calculate in the Tabbix and Repetortviewer a Matrix value from a result of another cell. Example: Cell1 = 1; Cell2 = 2; Cell3 = Cell1 + Cell2;     
asked by 06.09.2016 / 14:30