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...
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...
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...
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...
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...
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...
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...
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...
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...
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...