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

1
answer

How to maintain a Session after re-executing an application?

In my project in MVC 5, a session with user data is created at login and after re-execution of the Session application no longer exists, however, the Coockie authentication still exists. What can I do to keep both active or destroy both? [H...
asked by 24.10.2014 / 14:44
1
answer

AjaxBeginForm Replace does not work

I am using Ajax.BeginForm to update a specific div on the page. When submitting and executing the action, instead of updating this DIV, the page is updated with the partial view returned from Action. I use this same snippet of code in ano...
asked by 09.10.2014 / 16:55
1
answer

How to publish .mdf database in Azure SQL Dabases?

I have solution with a Asp.Net MVC 5 project and I'm using Code First and Migrations to update the .mdf database automatically generated in the App_Data folder. How do I put this .mdf in Azure and can u...
asked by 15.09.2014 / 20:56
1
answer

How to upload multiple images to SQL Server using JSON in ASP.Net MVC?

I need to insert a set of information into the SQL Server database data, but along with them some photos along with some strings. I'm looking forward to moving everything through JSON. Input to select the image: <th> <div...
asked by 05.09.2014 / 22:33
1
answer

Url.Action outside the Area

I've separated the asp.net mvc user registry in an area Control Area In a registration action, it sends the confirmation link, it is generated as follows var callbackUrl = Url.Action("ConfirmEmail", "Account", new { userId = user.Id, cod...
asked by 04.09.2014 / 21:15
2
answers

Create a menu type, but with a (+) sign (TreeView)

I use a Bootstrap 3.1, Entity 6.1, Visual Studio 2013, MVC5, JQuery and etc ... Well, I need to make an inquiry, so that when the screen is loaded, it can load some information, like medicine (Description) and other information, but separately. N...
asked by 19.08.2014 / 19:35
1
answer

Validate response on controller is giving error

I need to validate the answer in my method in the controller. For this I need an if. Why does the method not consider return within an IF? So: public JsonResult ValidaLogin(string _email, string _senha) { INETGLOBALEntities...
asked by 05.08.2014 / 15:56
1
answer

Catch value on an item checked from a checklistbox

I have this checklistbox. <div class="col-md-6"> <h3 class="text-center">Unidade de negócio</h3> <div class="well" style="max-height: 300px;overflow: auto;"> <ul class="list-gr...
asked by 25.08.2014 / 17:41
1
answer

Validate without giving post with html helper asp.net mvc

How do I validate using Html helper and data annotation, but without posting That is, eg: StringLength (10) While he is typing, go validating this anotation ... (among others)     
asked by 20.08.2014 / 02:45
2
answers

jquery method does not pass parameters to controller

Jquery does not pass parameters to controller. The values are coming in blank. Jquery: function GravaEvento() { var str = ""; var parametros = jQuery.parseJSON('{ "DE_Cnpj": "' + $("#txtCnpj").val() + '" , "DE_Descricao": "' + $("#txtDe...
asked by 04.07.2014 / 00:06