Questions tagged as 'asp.net-mvc'

0
answers

Carousel Bootstrap disappears asp net

Good evening, I tried to find the answer to my question on the forum and I did not find it. I have a website developed in Asp.Net MVC and on the homepage I have a carousel in bootstrap. The carousel works normally, slides 3 images. I noticed tha...
asked by 07.06.2018 / 02:15
0
answers

How to change saved image by uploading image again in View Edit (Asp.net MVC)

I'm developing a web application and loading image using an external class of utility name , in ActionResult Create I can upload and save image to Directory but I'm having trouble changing the image saved through ActionResul Edit . Somebody...
asked by 07.06.2018 / 06:35
1
answer

MD5 Encryption asp.net MVC

I have to do an encryption in a web application. I am using the following method to encrypt the password. // Criptografa a senha public string GerarMD5(string Senha) { // criptografia MD5 MD5 md5Hasher = MD5.Create();...
asked by 19.06.2018 / 22:01
1
answer

How to do a replace in XML C #

I have a method that receives some parameters, I would like to replace some xml information, at the moment I can only remove and add new information private void CriacaoDoConfirmarLogin(string CaminhoArquivoParaLeitura, string NomeCaminhoPa...
asked by 19.06.2018 / 21:55
0
answers

The ViewData item that has the key 'CategoryId' is of type 'System.Int32' but should be of type 'IEnumerableSelectListItem'

When I create a new subcategory I have the following error:    The ViewData item that has the key 'CategoryId' is of type 'System.Int32' but should be of type 'IEnumerable'. Classes you are using: public class SubCategory {...
asked by 01.07.2018 / 21:12
0
answers

Adding items from one grid to another

Can anyone help me? I have a problem as follows I'm using two grids The first one loads a list of items in which, when selecting a record, I add this selected record in the other grid Until then everything works But in the second grid I...
asked by 09.06.2018 / 18:38
0
answers

Field checkbox (Binding ViewModel) does not work in View - Asp.net Core MVC

I have a bool field "System Default" in which a Binding is done with its respective ViewModel. Whenever the view is loaded, it looks like false but when I go with Break Point, ViewlModel's field is true ... <divclass="col-md-5"> <...
asked by 09.06.2018 / 21:24
1
answer

JavaScript onClick event does not work with data-modal - Asp.Net Core MVC

I have a DataTable in my Index in which lines are loaded using JavaScript. The Edit, Details, Delete, and History buttons are created together. All of them open in a modal window (the modal block is inside the Index) ... In the html of each butt...
asked by 09.06.2018 / 13:21
0
answers

Get the Id of a cell from a DataTable to do a CRUD in Asp.net Core

I have a DataTable that is loaded using JavaScript. The CRUD buttons are dynamically created. Before when I used ViewModel and Razor it looked like this: <a asp-action="Edit" asp-route-id="@item.Id" title="Edit" class="btn btn-warning">...
asked by 08.06.2018 / 23:53
0
answers

How to load 10 in 10 records on a table using PagedList in Asp.net MVC Core?

I have a table that will contain 300,000 records and I need to create a smart paging and performance. I found many tutorials on the net that teach paging using PagedList, but in all cases, all the records are loaded and then pagination is done....
asked by 06.06.2018 / 01:45