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

2
answers

My javascript function does not call action controller

I have this javascript function. function loginUsuario(){ alert(); if(($('#txtUsuario').val() != "") && ( $("#txtSenha").val() != "")) resultado = JQuery.parseJSON('{"Usuario": "' + $('#txtUsuario').val() + '", "Senha...
asked by 23.04.2014 / 15:38
3
answers

how to indent a string for json

I have a string in json format. In this way: {"IdLead":4186960,"Concessionaria":"Mila - Centro","DadosQualificacao":{"IdEvento":79654,"Qualificacao":1,"Motivo":6,"DescricaoMotivo":"motivo 1234","Ficha":["aaaaaaaa - TESTE","Ação desejada...
asked by 24.05.2018 / 19:29
1
answer

Login error facebook

When I try to login to facebook through my application, it gives the error:    URL blocked: Redirect failed because URl used is not   in the release list in the client's OAuth settings   app. Verify that the client and Web OAuth login...
asked by 29.03.2017 / 04:24
2
answers

null object when deserializing Json

I make a request to an API, which returns me data in the form of JSON. Example: { "id": 8452, "creator_user_id": { "id": 46342, "name": "ADM. Suporte Comercial", "email": "*******@gmail.com", "has_pic": true, "pic_hash": "296e6514a7d0bf854f...
asked by 11.08.2017 / 21:08
2
answers

View Model should have related classes?

I have three entities: Manager , PersonalData and Address . A Manager has a PersonalData and a PersonalData has a Address . My question is when creating ViewModels , I would have to have a proper...
asked by 12.07.2016 / 23:15
2
answers

Remove Time in the DateTime field

Dear,IneedtodisplayonlythedateinaTextBoxForfield.IusethisHTMLControlbecauseIuseaJavaScriptmaskthatformatsthefieldvalueatthetimeoftheinputofthedate.@Html.TextBoxFor(model=>model.DtCadastro,htmlAttributes:new{@id="DtCadastro", @name = "DtCadas...
asked by 17.11.2015 / 12:59
2
answers

return view with empty model

I do the submit to save, and I want it to return in the same view, but with the empty fields, a new model, so it can be added again But he always comes back with the data I filled out My action looks like this: public ActionResult Salvar...
asked by 22.08.2014 / 14:30
1
answer

Error when passing AddDays on Lambda expression

In this lambda, it gives me the error below, when it enters the IF: var resultado = webDB.T_ControleColetor .Where(cn => cn.CNPJ == cnpj) .Where(dt => dt.DataControle == DateTime.No...
asked by 06.05.2014 / 02:13
1
answer

How to pass values in an Action Link that are in HTML elements?

I have 2 HTML elements, a TextBox and a Hidden , which have values, how do I pass the values of these elements to the Action link in the Action link? Below the parameters docItemId and vlrImobIcms are giving error. &...
asked by 18.02.2014 / 13:58
1
answer

Mount URL without displaying the Action or Controller name or both

Anyone who has experience in e- commerce knows what I'm going to ask. Usually, when we create a route, and call our Action related to that route, the URL is mounted like this: link If there are parameters, then it is loaded after the A...
asked by 19.03.2014 / 17:12