Questions tagged as 'asp.net-mvc'

1
answer

Assign href via jquery

I have an element in my Layout and I'm trying to set the href via jquery, but it will not. The code is in my index. Here is the code: Layout <div class="three wide column dindex"> <div class="ui left fixed vertical blue i...
asked by 03.06.2016 / 19:15
1
answer

Save multiple text box data with equal names

In my project I have a rule that is to save several fields with the same name at one time. Today, registration works, but only one field only, and that's not what I want. I need to click on save to save all fields, generating different record...
asked by 31.05.2016 / 03:28
1
answer

Show items according to click

In my view I have 5 partials that must be rendered. I needed that clicking one is shown and the others are hidden ... It's in this structure: <ul class="nav nav-tabs"> <li class="active"><a href="#cliente">Clie...
asked by 30.05.2016 / 04:28
1
answer

cascade delete with entity framework

I have the following situation: my database is MySql, when I try to delete a direct record in the bank, from this message: Cannot delete or update a parent row: a foreign key constraint fails ('lifeproject'.'t0041_usuario', CONSTRAINT 'fk_t004...
asked by 28.05.2016 / 02:30
2
answers

Action Edit in ViewModel

Well, I'm trying to implement the action of editing the data of a viewmodel I have in my project. I even created an action, but it is not working ... What happens is that from what I researched, when you are going to build an edit action, you...
asked by 08.06.2016 / 05:38
1
answer

Error when using EF6 CodeFirst with Mysql

I have the following error when I run Migrations: HowcanIsolveit?Ihaveeverythingproperlyinstalled.Here'smyWeb.Config:<connectionStrings><addname="ProjetoCultContext" providerName="MySql.Data.MySqlClient" connectionString="server=l...
asked by 11.04.2016 / 22:36
1
answer

Several "Divs" within a foreach

I want an "imdb" star ranking system, but the element only appears once inside the cycle. Script: <script> $(document).ready(function () { $(function () { $("#rateYo").rateYo({ onChange: functi...
asked by 12.05.2016 / 17:12
1
answer

Pass text from a textbox via onclick parameter

I need to pass as parameter the content that is in textbox , in onclick of a button. How can I do this? This is the Html code: <div id="popup"> <table width="300" height="160"> <tr> <td colspan...
asked by 04.02.2016 / 17:59
1
answer

How do I send data from a dynamic HTML table via json

I need to do something like the code below: Here I create the table htmla dynamically: $('#btnIncluirContato').on('click', function () { $('#tblContato tbody').append('<tr id=' + $('#ContatoID').val() + '>' + '<td class="N...
asked by 31.03.2016 / 22:17
1
answer

Pick up the selected item from the Select2 plugin and do a Submit

How to get the selected item from the DropDownList Select2 plugin ( link ), and send it to a Controller through a button submit? SCREEN CONTROLERpublicActionResultIndex(ContratoViewModelcontratoViewModel){intid=contratoViewModel.Id;}SUBM...
asked by 19.01.2016 / 01:00