Questions tagged as 'c#'

1
answer

How to change the name of the References column by Fluent Nhibernate?

In the "LOG" class, I'm trying to indicate the column name, which is an FK, using FluentNHibernate's References. I have the following class structure: public class Pessoa { public virtual int Id { get; set; } public virtual string Nom...
asked by 28.07.2014 / 16:02
1
answer

Object reference not set to an instance

"Object reference not set to an instance" of an object I'm having this problem here in my project in ASP.NET and since for quite some time I can not get on with it, please can I take a look at my code and identify the error I need to help with i...
asked by 28.07.2014 / 19:40
1
answer

javascript error - Uncaught TypeError - I can not solve

It gives me the following error: Uncaught TypeError: undefined is not a function. I still can not figure it out. I have already changed the jquery versions and nothing. I looked for quotes, semicolon errors and even then I still can not solve. T...
asked by 09.09.2014 / 15:46
1
answer

Dependency injection with Ninject

I'm using Ninject in ASP.Net MVC and trying to implement, but I'm getting an error:    Error activating ISessionFactory       No matching bindings are available, and the type is not self-bindable.       Activation path:       3) Injection...
asked by 09.09.2014 / 02:20
1
answer

Create record pattern with C # UI repository

I created a repository with EF6 on my system, every record that I have access to the methods of my repository to commit the actions I need (Insert, Delete etc ...). The problem is that my system is very large and I need to gain agility when crea...
asked by 15.07.2014 / 18:07
1
answer

BundleConfig - Can not find files on the server

I am using Kendo UI in a MVC 4 project, I made the settings in BudleConfig: bundles.Add(new ScriptBundle("~/bundles/kendo") .Include("~/Scripts/kendo/2013.2.918/kendo.all.min.js") .Include("~/Scrip...
asked by 16.07.2014 / 15:38
2
answers

How to change the border color of a GroupBox

How to change the border color of a Group-box? Because I need to put a very clear background color ... there the edge of the Group-box I have almost do not appear because they are a very light gray too .... I needed to change to a darker c...
asked by 12.08.2014 / 19:07
1
answer

Select in two tables

Ban.cs public partial class Ban { public int IdBan { get; set; } public System.DateTime DataBan { get; set; } public System.DateTime DataDesban { get; set; } public int Usuario_IdUsuario { get; set; } p...
asked by 02.11.2014 / 20:21
1
answer

Update an ASP.Net web page

How do I update an ASP.Net web page? I have a page that has two GridView and I need this page updated every 5 minutes. My GridView looks like this: <div class="GridMain"> <asp:GridView ID="gvInform...
asked by 09.06.2014 / 16:08
2
answers

Infinite Loop in Event

I have a class called Dta that contains the following code: public event Dta._TimeOutEventHandler _TimeOut; public delegate void _TimeOutEventHandler(Dta dta); public void CheckTimeOut() { if (TimeOut == null) { TimeOut = new Ti...
asked by 10.06.2014 / 21:50