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

3
answers

Load dynamically from the database and mount a treeview in cshtml I'm not getting

is as follows. I'm not getting the satisfactory results in assembling a tree using checkbox like in a treeview. Well, when I put in the data it works fine. But when I bring the DB data, that's complicated, that is, it does not work. The logic is...
asked by 10.09.2014 / 19:52
2
answers

jQuery PivotTable

I'm new to Development, and I'm doing a screen that has a GridView that when I click on the ADD button of the text it writes the Label on the line but sends the text to the other line, I wanted to know how to make the text in the same line and A...
asked by 30.03.2015 / 21:09
2
answers

Error in making an Insert in the bank

I'm trying to save some data in the database and I'm getting this error:    The INSERT statement conflicted with the FOREIGN KEY constraint "FK_dbo.Domains_Dom.Alumni_Alumni". The conflict occurred in database "aspnet-CEF01-20140410111235", t...
asked by 21.05.2014 / 15:27
1
answer

Map one model Id in another without a DropDownList

I had a problem making relationships in my application. My project is from a school, and in it I have to have the occurrences. But at the time of relating the Student to the Occurrence it happened to me that, in the view create of the occurrence...
asked by 14.05.2014 / 03:15
1
answer

How to pass more than one Controller option on routes.MapRoute ()

I have the following route: routes.MapRoute( "Contracts", "Home/Contract/{contract}", new { controller = "Home", action = "Contract", contract = UrlParam...
asked by 24.08.2017 / 20:37
1
answer

Error using GROUP via LINQ

I'm trying to perform the query below: var query = from s in db.Crm_Analise where s.cliente_CRM == cod_cli group s by s.TAG into g select new...
asked by 14.07.2017 / 18:20
2
answers

How to create a View to insert multiple entities

I have an entity that has child entities, for example: - Supplier (owns the main supplier data) - SupplierEmails - ProviderTelephones - SupplierEnderts - etc ... Where each entity is a related database table. In MVC I created a Model for e...
asked by 08.08.2017 / 20:53
1
answer

500 (Internal Server Error) when setting action as [ChildActionOnly]

I want to block partialview url via url using [ChildActionOnly] . Issue problem, follow code: HTML: <li style="cursor:pointer"><a id="button_id">Criar</a></li> JS: $("#button_id").click(function ()...
asked by 19.06.2017 / 15:52
1
answer

After login, how to pass value to the view

After logging in, the user is directed to the page Home and on this page, I would like to show a Label with the client code that this user belongs to. So I went to the AspNetUsers table and added a column called Cod_Cl...
asked by 11.07.2017 / 17:04
2
answers

RegularExpression allow greater than 0.00

False value: 0,00 -- false True value: 0,01 -- true 0,10 -- true 1,00 -- true 10,00 -- true 100,00 - true 1.000,00 -- true 10.000,00 -- true 100.000,00 --true 1.000.000,00 -- true 10.000.000,00 -- true 100.000.000,00 -- true 1.000.000.000...
asked by 07.03.2017 / 21:07