Questions tagged as 'c#'

1
answer

How to return a list from a json? [duplicate]

Here is the result:    {"response":{"numFound":2654,"start":0,"docs":[{"id":"l3ade68b8g5db3b0b3","langID":1,"url":"/ministerio-codigo-de-honra/quao-grande.html","title":"Quão grande","band":"Ministério Código de Honra"},{"id":"l3ade68...
asked by 25.11.2017 / 00:19
1
answer

How to cached in C # .NET an information for multiple users?

I have a list of objects, and I would like every user who accessed a page to add their objects to the cache. And that this cache was worth to the next person who accessed the same url. Example, I have the url "/ objects / id-6", the first use...
asked by 30.11.2017 / 21:22
2
answers

Using DvExpress GridControl

I'm developing an application using DevExpress, where the user clicks on a row in the GridControl, when that happens the data in that row is placed in some TextBox, the difficulty has been in figuring out the name of the event that I should use...
asked by 26.10.2017 / 19:29
1
answer

how to fetch table values in C # [closed]

I have this following code, how do I return what is in the user field of the user table? public int GetPerfilId(string username) { int result = 0; if(db != null) { DAL.Utilizador uti = db.Utilizador.Where(u => u.u...
asked by 05.05.2016 / 16:47
2
answers

Error in ToString method ("C3") [closed]

I did this in the constructor of my class and now it gives error saying that there is no overhead for the ToString method with 1 argument. It was working, I cleaned the solution and it all went down. Mapper.Initialize(cfg => {...
asked by 27.08.2017 / 19:29
1
answer

Rotating RazorPDF "hangs" on IIS [closed]

Friends, I use Visual Studio C # 2015. In an MVC project I'm also using the RazorPDF Rotator to create PDF from HTML pages. When I test the application in the development environment (localhost within Visual Studio) it works 100% of the time. Ho...
asked by 17.09.2017 / 03:08
1
answer

Retrieve the last 5 ids of the Sql Server database using entity framework?

How do I retrieve information from the last 5 Ids of the Sql server database using entity framwork? Controller public class VideoController : Controller { private DBContext db = new DBContext(); // GET: Video public ActionRes...
asked by 03.09.2018 / 14:18
2
answers

I can not parse json with brackets in C #

I'm using the Newtonsoft.Json.Linq library to parse json in C #. So far it worked beauty, when I have a json string like this: { 'chave':'valor' } But when I have a json like this: [ { 'chave':'valor' }, {...
asked by 16.05.2018 / 17:22
1
answer

Add form to subscribe the newsletter in C #

Live. I'm developing a website in C #, asp.net with visual studio feature. I would like to put a small form where the site viewer places your email to subscribe to a newsletter. I have already researched ways to do this but I have not found any...
asked by 17.05.2018 / 12:44
1
answer

Validate the contents of a cell in the DataGridView

I need some help. I am doing an insertion of items into a request, using a DataGridView, in that DataGridView I have the code column, , batch , and qtda . I need to validate the code column, so if I have already entered code 1, it does...
asked by 15.01.2018 / 12:59