Questions tagged as 'asp.net-mvc'

0
answers

How to upgrade version of SQL Server LocalDB

I have an ASP.NET MVC site project shared on the team and on the home pc. I can connect to the DB normally, however, when I login to a user registered on the site in the pc of the tram he happens the following error:    The database 'aspnet-N...
asked by 28.06.2016 / 22:17
3
answers

Compare two querys

I have a query that returns only the catechizers that went to the event: var catequizandosCheked = (from cat in db.Catequizando where cat.Eventos.Any(e => e.EventoID == eventoID)...
asked by 16.05.2016 / 19:58
3
answers

Send All CheckBox via Post

I'm trying to send all the CheckBox from my View, however, I can only send the ones that are selected via FormCollection Controller public ActionResult Index() { List<ListaCheckBox> listacheck = new List<ListaCheckBox>();...
asked by 29.04.2016 / 17:47
1
answer

Slowness with FluentNHibernate

I'm using FluentNHibernate in a simple product registration application. The first time I run something that accesses the database (product query screen or a product registration), the site will load for a long time. But after this first load...
asked by 10.05.2016 / 18:36
1
answer

ASP.NET Search Box

I'm having trouble creating an item search box. I'm already a beginner. I want the user to type a name in the search box to display the items that contain the name that the user entered or a part of it, for example: the user entered material...
asked by 24.05.2016 / 22:05
1
answer

Upload information _Layout.cshtml database welcome

I want to load the information in _Layout.cshtml as registered in the database, for example, @ViewBag.MetaDescription , @ViewBag.MetaKeywords , @ViewBag.Title and other information also coming from the database. What...
asked by 04.05.2016 / 22:01
1
answer

How to List Products from a Single MVC Distributor

I have an application that manages the Distributor and its Products. I want to list only the products of the Distributor that I have selected, but in the case everything is appearing. I tried to do this: public ActionResult ListarProdutosDi...
asked by 28.04.2016 / 20:18
1
answer

Doubt about entities asp.net mvc

I have 4 tables: T1 , T2 , T3 and T4 and the Customers table . What happens is that the tables T2 to T4 should "be one. But as part of the data would be like a table and its options, I preferred to break for easier maintenance ......
asked by 26.05.2016 / 21:45
1
answer

ENTITY FRAMEWORK - add-migration New Project without renaming old tables

I want to share a database with some projects. I've already done the first project with the bank and it's ok. I copied the project to create a similar one, changed the initial prefix of the Ex tables: project1_client, project2_client and so t...
asked by 30.03.2016 / 20:57
2
answers

Removing part of the link in the ASP.NET MVC routes

My RouteConfig is configured like this: routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{empresa}/{controller}/{action}/{id}", defaults: new { empresa = "", controller = "Login", action =...
asked by 07.03.2016 / 13:41