Questions tagged as 'c#'

1
answer

Middleware with ASP.NET MVC and .NET 4.5

Is it possible to add some middleware routes that will, for example, allow or redirect a user to access the admin panel, which if not authenticated will be redirected to the login area? as in the example below (In PHP / Laravel): Route::get(...
asked by 24.02.2016 / 20:20
2
answers

ASP NET MVC - Download html table

I have a view that has a whole table structure, typing the path of the view in the navigation bar I opened the table. I would like to create a button that would drop this table and save it as .xls Can someone help me? I've already looked for it...
asked by 10.03.2016 / 20:40
1
answer

Filter results on a bank level Entity Framework

I have the following question about using the Entity Framework. I have an abstract class for the class that communicates with the base. Aiming for the performance I want instead of bringing all records from a table to after filtering, I want...
asked by 14.03.2016 / 12:18
1
answer

BackgroundWorker does not get selected value from ComboBox

I have a ComboBox of objects and I'm creating a BackgroundWorker to add these objects to my database. Without using the BackgroundWorker I can get the selected object but when I use the BackgroundWorker it returns an exception and the object is...
asked by 11.03.2016 / 20:46
1
answer

JsonResult request with decimal type

Because when I send a request with a decimal type (3) the "Point" is deleted, see in the INSS field which is a decimal value, for example: I type 1,69 when doing a bind in the model the point is eliminated and transformed into 1690...
asked by 31.01.2016 / 20:58
2
answers

How do I render a partialview ASP MVC

I have a View that has a div and inside it a partialview EX: <div> @Html.RenderPartial("MeuPartial"); </div> No page load renders right, however, I needed it rendered every time I clicked a button....
asked by 14.04.2016 / 07:20
1
answer

FormsAuthentication causes an infinite redirect error - ASP.NET C #

Good afternoon, I'm developing an ASP.NET application with C # that requires login, works and is being used this way: protected void Page_Load(object sender, EventArgs e) { SqlConnection conn = new SqlConnection(...
asked by 14.04.2016 / 17:00
1
answer

How to show "load" screen with modal bootstrap on any process from server c #

I need my pages to show the entire server process a screen with a Loading type using the bootstrap modal I created below. My problem is being able to show this in every process. Is there any way to do this? Does anyone have an idea? M...
asked by 12.04.2016 / 19:09
1
answer

Web Helper Chart does not appear in the server application

Action that mounts the Chart: public ActionResult GraficoPedidos() { int [] arrayP = new int[12]; int aux = 0; for(int i = 1;i <= 12;i++) { int numero = Convert.ToInt32(context.Pedidos.Count(p => p.DataPedido....
asked by 07.03.2016 / 21:16
1
answer

Do you doubt with FluentNHibernate mapping?

I'm trying to create a scheme to set permissions on my system and these permissions are given to the user profile, where you can choose what each profile is allowed to do in each module. For this I have created some tables and I am in doubt how...
asked by 09.03.2016 / 05:26