Questions tagged as 'asp.net'

2
answers

List records with the most recent date

I have the following List<Pago> listaPago = dbc.pagos .GroupBy(c => c.codigoUsuario) .SelectMany(w => w) .OrderByDescending(f => f.fechaPago) .ToList(); And it shows me the following codigoPago codigoUsua...
asked by 24.11.2017 / 21:53
1
answer

Add data to a List with a List float

Hello, good afternoon, my friends, I have a problem that I have with the whole day. I have a class called data type that contains a string Name and a list type float Total. public class datos { public string Nombre { get; set; }...
asked by 11.10.2017 / 22:06
1
answer

Aspnet mvc 4 Bootstrap v3.3

I am developing in asp.net mvc 4 and I have the following query: with this code: <div class="col-md-12"> <label>Ejemplo</label> <input type="text" name="name" class="form-control"/> </div> It should...
asked by 13.11.2017 / 18:57
1
answer

Error Deserializando Json

Server code public class TestController: ApiController { public string Get() { Users user = new Users { name = "Hola", surname = "Mundo" }; var response = JsonConvert.SerializeO...
asked by 01.10.2017 / 13:53
2
answers

pass several sqlDataSource parameters to a stored procedure

I have a stored procedure that selects a table according to several criteria, it is a search type if the user does not enter any parameter all the records in the table must be shown, in case the user decides to fill in a criterion of search only...
asked by 15.11.2017 / 08:00
2
answers

How to get DB values in the controller session in sight and close as soon as the session closes?

This was an old query and I get the idea out of it ( I need to take those Values to the controller, I would have to save them in Parameters of the ShopParameters type along with the dates, after storing them in parameters they will be sent to...
asked by 03.10.2017 / 15:38
1
answer

How do I send the focus to an input tag from the actionresult of a controller?

I'm starting in C # and MVC, I've already done some things in VBA, and I was thinking about translating this into ASP.net MVC5 but I've encountered the problem that before, in the form I had some textbox and to send the focus to one of them when...
asked by 22.08.2017 / 08:19
1
answer

View value in modal window with asp.net vb.net and boostrap

I want to open a modal window with boostrap in asp.net but that I change the value of a label that is in the body of the modal for that I do this ASP.net <!-- Button trigger modal --> <button type="button" cl...
asked by 28.07.2017 / 06:23
1
answer

How to identify duplicate values in gridView

I am loading a GridView with several records from the form, a field is E-mail, at the end of the process I send an email to the addresses added in that column. The problem is that the E-mail field is usually repeated, so the mail is sent as many...
asked by 22.07.2017 / 19:23
0
answers

Avoid repeated ID's

I am dynamically generating buttons but when clicking on a button, and clicking on another one and again on the first one I clicked on (I hope to have explained it) it throws an error and tells me that multiple controls have been found with the...
asked by 10.07.2017 / 13:56