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

1
answer

How do I get the ID of the DropDownList and pass it to a variable in jQuery?

I have the following DropDownList: <div class="editor-field"> @Html.DropDownList("ProdutoId", String.Empty) </div> And this jQuery function that when the user presses the button will pick up the selected valu...
asked by 06.11.2015 / 19:44
1
answer

Search form does not execute controller method

I have the following form: <form role="search" method="get" id="search-form" name="search-form" action="/video/pesquisa"> <div class="cover-pursuit-btn"> <button type="submit"...
asked by 16.11.2015 / 20:26
1
answer

Configure Scaffold to generate classes

How can I configure Scaffold to generate non-standard classes (Controllers and Views)?     
asked by 05.10.2015 / 13:42
1
answer

Datatable column filter asp net mvc5

I have a problem using the datatables column filter plugin, it does not report me an error, but it does not generate the filters either, it follows my code: <script language="JavaScript"> $(document).ready(function () {...
asked by 20.08.2015 / 16:13
2
answers

Validation via Javascript

In my application that manages Courses , I'm in need of a validation via javascript . I have a screen where student signs up for a particular course, what I wanted is that when he clicks the signup button, the Enrollment completed su...
asked by 03.07.2015 / 15:05
2
answers

Single-field validation in form in Asp.Net MVC

I'm developing an application that manages enrollments in courses, and in my registration form I have the CPF field, and I would like to know how I can make this field unique, that is, bar the user from making another registration with the same...
asked by 02.06.2015 / 20:33
3
answers

Error updating data

I have a base repository where I only run CRUD. When working with one die at a time, it works normally. However, I needed to make a modification and send several records to be edited at once. But in doing so, I get an error. When you c...
asked by 12.05.2015 / 17:00
1
answer

Send two models to a View

I have two Models: TBFuncionario and TBEndereço : namespace Lamar.Dominio.Entidade { public class TBFuncionario { public int TBFUNCIONARIOID { get; set; } public string MATRICULA { get; set; }...
asked by 16.08.2015 / 02:34
1
answer

Get URL value in a DropDownList

In my application I have a DropDownList that filters the search data. When filtering, it retrieves the value of QueryString and leaves the value saved in DropDownList itself (so that when the page changes, the filter option...
asked by 08.06.2015 / 21:01
1
answer

EF context changed, but without updating database structure

I'm using the free hosting service in a free plan. Until then, everything worked fine. But after I've made some changes to my database, their database just does not work, it gets error:    The model backing the 'ContextEntities' context...
asked by 04.02.2015 / 01:39