Questions tagged as 'asp.net-mvc'

1
answer

String nonce is not being generated

I'm using the braintree API and I'm able to put dropin form of them on page:           var braintreeToken = @Html.Raw(Json.Encode(Model.brainTreeToken)); braintree.setup( braintreeToken, "dropin", { container: "payme...
asked by 04.11.2015 / 18:11
0
answers

How to use Web api for controllers and MVC for view (Front-end)?

Hello, my problem is the following, I'm doing a test for stage and the guy asked to do an ASP.NET project with mvc only for views, and web api just for controllers and another layer for the bank only that I I could not do the mvc recognize the c...
asked by 22.12.2015 / 00:17
0
answers

Problem in TextBox to do autocomplete

I can not get into the query method to return the nomes and id´s of the person. View: <script type="text/javascript"> $(document).ready(function () { }); $("#AutoComplete").autocomplete({ source: fun...
asked by 26.01.2016 / 16:43
2
answers

@ Html.ActionLink and Url.Action are not taking the route of the controller annotation

I have the following method in the control: [Route("video/categoria/{categoria}/{page?}/{sort?}")] public async Task<ActionResult> Index(string categoria, int? page, string sort) { ... } My RouteConfig.cs: public static void Regis...
asked by 07.11.2015 / 02:05
1
answer

Display Image in View [closed]

I'm trying to adapt an example that I've got here, to be recording the image in the folder, and show both in INDEX and EDIT, but there are some differences. As below, my source code, if they may be orienting me in the sense that I can adjust the...
asked by 27.10.2015 / 12:44
1
answer

ViewModel parameter being passed as null

I'm trying to validate my login form, but the "ModelState.IsValid" function is not performing validation. Accordingtotheaboveimage,whenexecutingAction,the"MakeLoginViewModel" parameter is being passed as "null". Below is the content of my Vi...
asked by 31.10.2015 / 23:08
1
answer

FormsAuthenticate + jQuery Ajax

I'm creating an application that uses FormsAuthenticate to login to the system. However, I'd like to make a treatment for that in an ajax request (jquery) made when the user is not logged in. I put a $(document).ajaxComplete(function (e...
asked by 10.11.2015 / 15:06
1
answer

View the complete list of tables in an Oracle connection with Entity

As I do for a connection to the Oracle database, show all tables. I made a connection and I have more than 500 tables in the database and it only shows 74, the three that I need to mount the POC I'm doing, I can not map them. see the tables t...
asked by 05.11.2015 / 18:11
1
answer

listing filter in 2 MVC tables

I have 3 templates: Pessoa , Catequizando and Inscricao . I want to make a query that returns the Name of the person where CatequizandoID = PessoaID that will appear in a dropdown in the view CriarInscricao I...
asked by 07.12.2015 / 19:16
0
answers

How to pass the value of the @Html.DropDownList to the controller?

I have a modal register that I get 2 values, I use an AJAX to save the information, however the value of @Html.DropDownList does not go to my Controller, the strange is the value of the Description arrives in the controller. <div clas...
asked by 03.10.2015 / 01:36