Questions tagged as 'c#'

2
answers

How to render html passing as controller string to the view?

I have the following view: public ActionResult RelatorioEquipe() { ViewRelatorioEquipeDTO dto = new ViewRelatorioEquipeDTO(); dto.LstUnidadeGerencial = negocio.Relatorio.ObterLstUg(); dto.LstExercicios = new Exe...
asked by 04.06.2014 / 22:54
1
answer

Bank table does not update

I have some tables in my database that already contain saved data, but I can not update this data. I have the method below that performs the insertion of a new item in the table if the table does not have the item, if it has the data that is...
asked by 11.06.2014 / 22:48
1
answer

How to make a pager without a gridview? [duplicate]

I have a system in asp net mvc, in one of the screens is displayed several items, the select to get them from the bank is: Select top 20 from Produtos As shown, it displays only the first twenty products. The products are rendered inside...
asked by 10.07.2014 / 22:16
2
answers

jquery method does not pass parameters to controller

Jquery does not pass parameters to controller. The values are coming in blank. Jquery: function GravaEvento() { var str = ""; var parametros = jQuery.parseJSON('{ "DE_Cnpj": "' + $("#txtCnpj").val() + '" , "DE_Descricao": "' + $("#txtDe...
asked by 04.07.2014 / 00:06
1
answer

Difficulty with debugging MVC code

One of the problems I have had in studies is how to debug the code in mvc, I can not find a logic to solve this. NOTE: The code sample option is not formatting the code correctly. The image upload option is having problems, it only send...
asked by 03.10.2014 / 21:56
1
answer

Displaying progress on TaskBar

Hello everyone, I have recently seen in a forum that it is possible to show progress in Taskbar (compatible with Windows 7) I have the following code: using System; using System.Runtime.InteropServices; namespace System.Windows.Forms.TaskB...
asked by 13.07.2014 / 03:35
1
answer

Load GridView with variable data

I have 3 variables whose values are changed within a for loop. What I am trying to do is grab these values that are obtained in the variables and load them into a GridView. Here's what I tried to do, without success: protected void Page...
asked by 03.10.2014 / 19:59
1
answer

Query with LINQ, trying to perform a RIGHT JOIN

I need to make the following query through LINQ, using the given tables: You must return all vehicles where the "Type" has the "PART" field equal to "true", the connection of the "Vehicle" table with the "Type" table is done through the "Mode...
asked by 14.10.2014 / 15:30
1
answer

How to get contact list by code in Windows Phone 8.1?

How do I get the contact list of a Windows Phone by an application and display it in a ListBox ?     
asked by 18.10.2014 / 22:48
1
answer

Default Asp.net MVC Authentication

I am starting studies on ASP.NET MVC, and wanted to know where the visual studio creates the database and tables when choosing the default MVC project. It seems that it already creates all the support for registration and login. Where are these...
asked by 13.10.2014 / 14:24