Questions tagged as 'asp.net-mvc'

1
answer

View does not render in ASP.NET MVC

Well, I'm new to asp.net MVC and I'm picking up some time already for a blessed View . According to the help I had in this post # Following the example I made my adaptations but now my View is not rendering. Can som...
asked by 05.06.2015 / 20:54
1
answer

How to create Asp.Net MVC web project in Azure?

Yes, I've browsed the google , acessei forums and watched videos, but unfortunately I have not yet gotten an easy-to-understand tutorial to create a web project in Asp.Net MVC on Azure. The best tutorial I got was this , and this one also...
asked by 02.06.2015 / 21:34
1
answer

Radio button using ViewData for an MVC model

I have a ViewData and would like to make it a RadioButton for a model ViewData["tiposPagamento"] = dbo.TiposPagamento.Where(_=>_.Ativo); Radio Button: @Html.RadioButton(m=>m.TipoPagamentiID, ViewData["tiposPagamento"]) But just...
asked by 16.04.2015 / 12:43
1
answer

Multiplicity restriction violation

Has anyone ever come across this error in an asp.net mvc application?    Application Server Error '/'.       A relationship multiplicity restriction violation occurred: an EntityReference can not have more than one related object, but the que...
asked by 09.06.2015 / 20:38
3
answers

Problems with Data and Globalize

When submitting a form with a dd / MM / yyyy date, the value is converted to the US format in the controller, leaving MM / dd / yyyy. Through the response question , I configured globalize to solve this problem. However, the error persists....
asked by 14.05.2015 / 14:43
1
answer

Doubt Insert Image with Jquery?

Friends, Following the examples posted, I made the adjustments: public ActionResult ThumbNail(int largura, int altura, string caminhofoto) { if (caminhofoto != "caminho" ) { WebImage webImagem = new W...
asked by 13.04.2015 / 21:36
1
answer

Structure of branchs and merge .NET MVC

I have the following branch structure for ASP NET MVC projects Master - production version DEV - Development Release - Bug Maintenance This structure was already defined when I arrived at the project and I'm having a problem when it c...
asked by 13.03.2015 / 21:28
1
answer

Subdomain does not load styles and scripts

Good morning, 1- I created a new solution in Visual Studio 2012; 2- I created ASP.NET MVC 4 Web Application. I opted for a "BASIC" project, Framework 4.5 and the Razor engine; 3- I created the Home controller; 4 - I created the view...
asked by 13.02.2015 / 11:54
2
answers

Retrieve query string with character "+"

I have in my controller, a method where I get a Query String , decrypt it and use the data in my query. However, when the encrypted value has a + sign, it is not recovered by Request.QueryString . I soon get an error trying to decr...
asked by 06.02.2015 / 13:00
1
answer

Access the contents of App_Data through the business layer (ClassLibrary)

I need to load a file that is in the App_Data folder, but I have seen that it is not possible to use Server.MapPath in my business tier. Which approach is most appropriate for this case? Adding the reference of System.Web...
asked by 06.02.2015 / 13:07