Questions tagged as 'asp.net-mvc'

0
answers

Auto complete does not work asp.net mvc

I have a table in the database called Disciplines, and I have a field search in my Index that if I type a letter "A" should suggest "Analysis and development" this is an example, but it does not work, apparently the code is right but is not sugg...
asked by 08.11.2017 / 17:52
1
answer

Access control C #

I have 3 applications in ASP.NET MVC 5, when logging in application 1 it opens a page with links to the other 2 applications how do I create a single session for the user and prevent it from copying the url and passing it to a colleague for exam...
asked by 07.11.2017 / 13:42
0
answers

How to get User's location - City State

I would like to know how do I get the user's location so I can make my systems automatically select the city from the DropDownList City. Through a blog the author teaches how to do this development that I even tried to accomplish it, but I'm...
asked by 09.11.2017 / 04:30
0
answers

The required anti-forgery cookie "__RequestVerificationToken" is not present

I have a project that is on my server and is working on most machines, but in some the message is being received: The required anti-forgery cookie "__RequestVerificationToken" is not present. I have in my controler: [HttpPost] [...
asked by 10.11.2017 / 15:11
1
answer

How to pass values from ViewBag to a Javascript function in an ASP.NET MVC application

I have the following ActionResult Controller in my application. In this ActionResult I have two ViewBags that capture a deserialization of Longitude and Latitude values originating from a Google API. The values arrive perfectly in the ViewBa...
asked by 10.11.2017 / 21:52
1
answer

How to assign the value of a TempData ["Test"] or ViewBag.Id to an html input?

I would like to know how do I get the value of my tempData variable and put in an html input, in value maybe ... could anyone help me? Code below: <div class="container-fluid"> <form method="post" style="margin: 0 auto; padding...
asked by 16.11.2017 / 00:03
0
answers

ASP.MVC ENTITY Code First (strange problem)

I do not know if I'm doing something wrong (probably yes). But EF is persisting the data in a DB and in a table that it creates alone. I've already repeated this step-by-step 2 times and the result is the same. 1-I create an MVC Web Soluti...
asked by 03.11.2017 / 19:00
1
answer

DropDownList Error System.NullReferenceException 'in VB

I need to create a function to introduce a new defect, which is associated with one or several processes (for now I have not figured out how to select several), but I want the processes to appear in a dropboxlist, and it worked, the problem is t...
asked by 24.10.2017 / 16:48
0
answers

How to delete registration with modal?

I've been tinkering with ASP.NET for some time, and I came across a problem I can not solve. The idea is to just open a modal window, click on the confirmation and delete a record. The idea of this code is for testing only, if I can make it work...
asked by 23.10.2017 / 14:37
1
answer

DropDownList with multi selected

I have a table defects and one of processes, and a defect can have one or several processes. For now I have to work a dropdownlist for a defect, a process, what changes I need to make to be able to select several processes, follow the code below...
asked by 25.10.2017 / 17:51