Questions tagged as 'asp.net'

1
answer

What is the difference between DTOs and ViewModels? [closed]

   I can not understand their difference and what is the purpose of using AutoMapper     
asked by 26.03.2018 / 19:17
1
answer

Differences HttpRequest and httpRequestBase

From the controller the controller class gets the property Request and from System.Web.HttpContext.Current.Request but I do not understand the utility: public class HomeController : Controller { public ActionResult Index(Http...
asked by 04.11.2016 / 20:34
1
answer

Remove a row from my ASP.NET gridview

How can I remove a row from my gridview in asp.net once I select a record, without affecting the database, ie the list is in memory. This is the code as I charge my GriewView: private void Cargar() { srvLeyenda = new Srv_Ley...
asked by 10.09.2018 / 06:15
2
answers

How to print all values from a list of objects?

I am printing the contents of a list of objects that I retrieve from a DB, but when I read the result of the list, it only prints a single object and not all of the ones I store, I do not know what I am doing wrong, What I try to do is send an e...
asked by 21.06.2016 / 21:30
1
answer

why does not it return all the rows in the gridView?

Testing this method when in a gridview with checkbox if 1 checkbox is selected, then a modal with that selection is displayed in another gridview, and if 2 or more checkboxes are selected in the first gridview, the selected rows in another gridv...
asked by 30.10.2017 / 13:52
4
answers

Doubt c # javascript

So far to do a login using a database to verify it, what it did was that with javascript validate the form information, to then send the data, which through php, to a query to the database, which will corroborate the data entered by the...
asked by 15.12.2016 / 01:04
1
answer

Show the product category as a list item in a foreach on asp.net mvc

I have a list in the Sales model where I usually display all the products, but now I need to display the category to which they belong, but only once, for each product category, how could I do this? This is an example of what I want to do P...
asked by 01.12.2018 / 13:46
2
answers

Show ajax query in gridview or VB.NET table

I'm making an AJAX application in VB.NET that shows the records of a query in a gridview, so far I can only show the data in a JSON string but I do not know how to show them in a gridview or a table. Currently he only shows me this:...
asked by 10.01.2016 / 06:09
2
answers

Convert Text to Bar Code C #

I want to convert a text string entered in a TextBox to a barcode, but it has an error: Error: No se puede convertir implicitamente el tipo 'System.Drawing.image' en 'String' I use the following instruction: libraries: using Bar...
asked by 03.09.2018 / 22:53
2
answers

Select some gridview rows to display in ASP.NET webform2

Good morning, I have a gridview to which I insert data with a datatable which works perfectly, it complicates me when placing a row checkbox so that the user can select the row he wants to perform his management. This is the HTML code:...
asked by 25.01.2017 / 21:56