Questions tagged as 'asp.net-mvc'

2
answers

How to do data pagination with PagedList in Asp.Net MVC?

I have a user table with 10,000 entries. I want to paginate these records using LIMIT and OFFSET with PagedList but I can not do that. Currently the system searches all the records to later paginate and I do not want it to be this way, I want to...
asked by 06.02.2018 / 18:17
1
answer

Redirection with parameters

I have the following method: public ActionResult exemplo() That returns: int act = (int)TasksTypeEnum.CARGA; return RedirectToAction("Index", new { q = study.Id, msg = 1, action = act }); The index of the page receives: public Action...
asked by 02.01.2018 / 14:47
1
answer

Condition in a list

I have a program that inserts information into a CSV file. And I wanted to check if there is data in the variable if it does not show a message that there is no data entered in the file. var csv = listForRegister.Select(l => String.Join(";...
asked by 12.12.2017 / 21:13
1
answer

Auto-fill dropdownlist problem

I am having a small problem with the asp mvc 5 dropdownList, I need to automatically populate the dropdownlist value as soon as the user enters the search screen, I have already been able to get the value in the database but in the autofill part...
asked by 11.01.2018 / 03:32
1
answer

Hide td nulla in print JAVASCRIPT

On my system I made a button to print a screen. Everything is working properly, the problem is as follows. In the photo below you can see that the Current User part is coming nulla, since it has no user data, this is ok, I just need it when t...
asked by 28.02.2018 / 15:51
1
answer

How do I hide or clear the url while giving a get in asp.net mvc?

I would like to know how to clean or hide data that I pass through a URL to a webapi so that the data does not become apparent and does not get in the way of my routes. follows example: http://localhost:65286/Cliente/Login?Email=alguem%40...
asked by 15.11.2017 / 21:09
1
answer

Real-type fields on the bank with loading problems Model

Some 3 or 4 months ago I had this same problem, that after I remapped all my Model, it solved. And now it's back to the same problem. It used to be float and now it's Real . In my Model is decimal and gives the error. I have already changed t...
asked by 09.11.2017 / 11:05
1
answer

How to load TextBoxFor after onchange from a DropDownListFor?

How can I load a TextBoxFor after choosing a DropDownListFor element? I load the DropDownListFor with a list and the par from this list I want to filter an object to load the balance according to the selected DropDownListFor id. <div cla...
asked by 08.11.2017 / 16:59
1
answer

How to do class include in search in Asp.Net MVC

Developed a Code First system in Asp.Net MVC In this development I have created a relationship very much and I want to do a search that includes these relationships in a search, below I describe in a better way what I have developed I have...
asked by 24.10.2017 / 14:06
1
answer

HttpWebRequest asp.net returning error 400

I'm doing a query on a api to get a token access, using Postman , the options Body and Raw , passing the access data on the body, everything works fine, more in my example I have the error:    An exception of...
asked by 04.12.2017 / 03:34