Questions tagged as 'asp.net-mvc'

2
answers

asp net mvc5: Secondary actions are not allowed to execute redirect actions

I'm developing with mvc5 and EF I have a controller with the operations to edit a record something like this public ActionResult Edit(int id, string weblogin, byte tienda) { if (id <= 0) { return n...
asked by 16.05.2017 / 20:56
1
answer

Inject partial view from the shared

ASP.NET MVC 6 I want to perform a partialview injection. So far I make the call and I load it on screen, only instead of loading the partialview I also load the menu of the entire page. The way it works: a button with an onClick function call...
asked by 02.03.2017 / 20:17
1
answer

ReportViewer remote data

Good morning. I have a problem with the reports (.RDLC) of my project (ASP.Net MVC), it turns out that I just uploaded it to Azure (App Service). I was working with a local database, which did not have credentials (username, password), wit...
asked by 12.03.2017 / 16:25
2
answers

How to work with SimpleMembership in ASP.Net MVC in MySql? To deny and allow access to users

When you create a project in asp.net from visual studio, and choose the web application option, it generates some files that allow you to place some headings that are the following: [Authorize] [InitializeSimpleMembership] These...
asked by 16.02.2017 / 18:52
1
answer

how to style ActionLinkButton content [duplicated]

Can I make style modifications only to the content of my actionLink ?, in this case to the word Excel ... since when I give a style it modifies all my ActionLink, icon and text. Code @Html.ActionLink("Excel ", "ExportarConsultaAlmacen", new...
asked by 28.12.2016 / 18:42
0
answers

Calculate answer time for Progress Bar

I have a function in AJAX that returns a file. What I want to do is implement a Progress Bar with a percentage so that the user knows how the download of their file is going. Use C # MVC4 , my method in the controller is a FileResult , and...
asked by 13.01.2017 / 05:07
1
answer

Show Modal Popup when giving enter in a textbox

I'm trying to show a modal window by giving enter on a textbox , I had the following code to do it but it does not work for me: $("#txt_codigoCat").on("keydown", function (event) { if (event.which == 13) { $('#popupBusquedaCl...
asked by 19.12.2016 / 16:00
1
answer

CheckBoxFor in Razor with MySQL bit value

Could you help me please? I have in my database MySQL Bit fields (1), I do the Model and I work it in the controller with true or false ( Boolean ), until then everything is fine. In Razor I call my field...
asked by 02.12.2016 / 19:17
1
answer

Error inserting an entity from the Entity Framework [closed]

I am trying to perform an insertion of a new entity by means of Entity Framework C# in a table with auto-generated Id, but when calling the method SaveChanges() I receive the following error:    A dependent property in a...
asked by 20.08.2016 / 08:58
1
answer

Show view with variable content mvc [closed]

Good day I need help in the following, I am working with mvc I want to have a news section and when I click on "Read more" I load a partial view but on another page, which content is variable according to the link that I select, I have tried to...
asked by 01.07.2016 / 16:25