Questions tagged as 'asp.net-mvc-4'

1
answer

Problem generating list in a ViewModel

I'm working on ASP.Net with MVC 4 , and when doing a search / using filters I'll present a resulting list of data. To better handle this result I created a ViewModel where I put information from several tables. Now to populat...
asked by 14.02.2014 / 10:54
0
answers

Fill DropDowList with data from another screen [closed]

I have a time zone screen where I have the fields name of time zone, utc and daylight saving time only, it is working perfectly. only I have to create another screen "timezone period" with three fields the name of the time zone already registere...
asked by 11.05.2017 / 15:25
2
answers

Input submit does not call ActionResult

I'm having trouble calling ActionResult using input type="submit" and passing the model data. I did a test using ActionLink but the Model is not sent. Could someone give a light? Follow the code: Controller: [HttpPost] p...
asked by 17.05.2017 / 22:05
1
answer

How to send a special character to the view, asp.net mvc?

I have a situation where I would like to position the page in the same position as the container where it was before sending Get? Example: <!-- ==== contato ==== --> <div class="container" id="contato" name="contato"> <...
asked by 11.11.2016 / 13:36
0
answers

return inside the control does not send to the right maproute

Good afternoon, I'm trying to use maproute to control editing and insertion of data in the table, currently my routeConfig looks like this: public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resour...
asked by 31.08.2016 / 17:49
0
answers

Generating two CheckBox tags being one hidden in AspNet MVC

Good Night @Html.CheckBox("Agree", new { value = false, @class = "filled-in", @id = "filled-in-box" }) When I generate the CheckBox in AspNet, by the above command, it is generating me two Tags being one is Hidden, as I am using the materia...
asked by 22.09.2016 / 03:42
0
answers

List with repeated records via Linq

I'm trying to do a simple query with LINQ, and the code below is returning me repeated records in the first 5 rows of the list. var teste = (from p in db.VW_PAGAMENTO_RECEBIDO where p.ID_Pessoa == 23 select p).ToList(); When I run the SQL s...
asked by 08.06.2016 / 19:05
3
answers

Send All CheckBox via Post

I'm trying to send all the CheckBox from my View, however, I can only send the ones that are selected via FormCollection Controller public ActionResult Index() { List<ListaCheckBox> listacheck = new List<ListaCheckBox>();...
asked by 29.04.2016 / 17:47
1
answer

ENTITY FRAMEWORK - add-migration New Project without renaming old tables

I want to share a database with some projects. I've already done the first project with the bank and it's ok. I copied the project to create a similar one, changed the initial prefix of the Ex tables: project1_client, project2_client and so t...
asked by 30.03.2016 / 20:57
2
answers

DropDownListFor does not display selected value

DropDownListFor does not display value selected. public static List<SelectListItem> getMesesPagamento() { List<SelectListItem> listMeses = new List<SelectListItem>(); for (byte i = 1; i <= 12; i++)...
asked by 17.12.2015 / 13:42