Questions tagged as 'asp.net-mvc'

1
answer

How to change the status of a field with Javascript

I'm developing an application that manages Courses , I'm a beginner in ASP.NET MVC. In my application I have a screen that the Student makes your Enrollment in a course, I also have a field Number of Jobs and another field Status that s...
asked by 02.07.2015 / 04:11
3
answers

How to fix error in file upload?

I have the following form: @using (Html.BeginForm("importCSV", "Administrador", FormMethod.Post, new { @id = "upldFrm", @enctype = "multipart/form-data" })) { <input id="file" name="file" type="file" /> &l...
asked by 10.06.2015 / 17:01
1
answer

Error consuming Web API

Hello, in an ASP.NET MVC web project I'm trying to consume an API that is a Web API project, the two applications are running on the same server. When I access the MVC application error occurs when this application attempts to consume the Web...
asked by 31.07.2015 / 15:04
3
answers

Validation in Dropdownlist in ASP.Net MVC

I'm having trouble validating my dropdown in a view. In my model I use an annotation Required as shown in the code below: Model [Required(ErrorMessage="Informe uma cidade")] [Display(Name="Cidade")] public int CidadeID { get; set; } View...
asked by 22.04.2015 / 21:25
1
answer

Receiving all values in Lambda

My code has the following structure: var a = ViewData["a"]; var b = ViewData["b"]; var c = ViewData["c"]; var d = ViewData["d"]: foreach(var x in ObjetoE).where(x=> x.A == a && x.B == b && x.C == c && x.D == d){ // F...
asked by 14.04.2015 / 19:05
1
answer

problem with update Entity Framework 6

This is my upgrade method: public dynamic Atualizar(TEntity obj) { dynamic data = null; using (ClassContexto ctx = new ClassContexto(ClassMaster.conexao())) { try { ctx.Entry(obj).State = EntityState.Mod...
asked by 14.04.2015 / 21:05
1
answer

How to save Disicpline?

I have the following problem in my application.The course table is related to the Discipline table, ie 1 Discipline belongs to several course, and at the time of registering a course and adding more courses to this course I can not accomplish th...
asked by 22.09.2014 / 22:22
1
answer

Time Questions Area

I'm developing an application that should provide an environment where the following functions are performed: Administrator - Register questions - Edit user - Viewing Answers - View evidence - Entered note User - If you register...
asked by 08.10.2014 / 22:23
1
answer

Return Join Linq C #

I'm trying to return a join for my class and it's giving me the following error    Error 1 Can not implicitly convert type   'System.Collections.Generic.List' in   'System.Collections.Generic.List' C: \ Projects \ ASP.NET \ AdvanceTechniques...
asked by 19.08.2014 / 15:36
1
answer

Dynamic image system and SEO behavior

I read about SEO and understood that the higher the traffic of text, you have more content to be indexed by Google. I have an application that is based on images, it's practically a "multiple-gallery" generated not exactly like this, but more...
asked by 23.08.2014 / 13:35