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

1
answer

How to do reload asp.net mvc pagedlist?

I have my grid with the haged Pagedlist helper <div class="table-responsive"> <table class="table table-hover"> <tr> <th> @Html.ActionLink("Id", "Index", new { OrderBy = ViewBag.O...
asked by 25.08.2014 / 14:53
1
answer

Pass parameters via post to Controller

I have a CSHTML where the fields will become parameters, which will be passed via post to an existing method in a controller. How do I do this? I'm searching, but I still have questions about how to pass, as the method will understand that it co...
asked by 25.03.2014 / 12:52
1
answer

How to avoid page being displayed in another tab

I have this jquery $(window.document.location).attr('href', '/gerenciarpdv'); And this button calls this page <button id="teste1" name="teste" class="btn-pesquisa" onclick="ChamaGerencia();">GerenciarPDV</button> The proble...
asked by 07.05.2014 / 02:36
0
answers

Use 2 models in a View, but separate them in the form submission

I'm getting the following error:    'AddEmployeeViewModel' does not contain a definition for 'OfficeEmployee' and in the extension method 'OfficeEmployee' accepting the first argument of type 'AddEmployeeViewModel' could be found > Inside...
asked by 01.11.2018 / 18:18
1
answer

Help with LinQ Method using group by Dynamic

I need to build a dynamic chart from a filter panel and two select fields that can be crossed. I already have the structure that goes to the graph and how I need to return from the backend . In the case of backend I have the code below t...
asked by 14.11.2018 / 20:10
0
answers

Paging Problem X.PagedList

I'm trying to implement the X.PagedList paging, but in that line: @Html.PagedListPager(Model, pagina => Url.Action( "Index", new { pagina, search = ViewBag.Busca })) I'm getting the following message:    'IHtmlHelper
asked by 21.09.2018 / 19:32
0
answers

Scan Excel table data and save in SQL Server (Asp.Net MVC 5 C #)

I have an 'input file' that the user will upload the worksheet, I need to check if it is .xlsx or .xls and scan the data of that worksheet. After that, I need to save these items to Sql server. On verifying the extension...
asked by 01.08.2018 / 18:58
0
answers

How should I use the Visual Studio Authentication feature for an ASP.NET MVC project?

Gentlemen, I need guidance to start an ASP.NET MVC development project in Visual Studio. It is related to the implementation of the Authentication feature when creating a new ASP.NET project. My system will have two types of users, which will ne...
asked by 26.07.2018 / 00:27
0
answers

Local connection Sql Server Express 2017 - Asp.Net MVC

I'm trying to connect to Sql Server Express 2017 via Visual Studio (local connection), but I always get this error when I try to open:    A connection to the server was established successfully, but a   during the logon process. (provider: Sh...
asked by 11.09.2018 / 00:20
0
answers

How to change the length of an input in ASP.NET MVC

Hello, I'm having a hard time changing the width (length) of an input in asp.net MVC , I followed the course guidelines and it did not work. Follow the code of my view , if anyone can help .... I can not update the bootstrap...
asked by 14.05.2018 / 23:10