Questions tagged as 'asp.net-mvc'

1
answer

Listing in Asp.Net MVC

Well, I'm developing an application that manages course registrations, so my course listing screen looks like this: ButIneedtomakeanewscreenwithanothertypeoflisting,andIwouldlikethelistingtobebycourseandshowthestudentsenrolledinthiscourse.For...
asked by 03.06.2015 / 20:28
1
answer

How to bind an Id in ASP.NET MVC

Well, I have a little problem with my application, which is a Course Manager. The problem is that "student" has to enroll in some course, but I am not able to make the student's association to the course. In my registration screen I have a butto...
asked by 04.06.2015 / 19:39
1
answer

Object reference not set to an instance of an object.

Can anyone help me with the error below? I implemented it based on this link PermissionCookie     
asked by 22.05.2015 / 04:46
3
answers

Return in a view-specific div

I have a view where the contact form is at the bottom of the page, with validation via DataAnnotations. When I click the send button, the controller checks the ModelState, if it is not valid, it returns to the view with the validation messages....
asked by 02.06.2015 / 08:51
1
answer

customize RoleProvider without using Membership or ASP.NET Identit

Good morning. My question is the following and I have the authentication part of my system made without using Membership or ASP.NET Identit. and I wanted to make or use the [Authorize] method already I took an example in google where I did the f...
asked by 02.06.2015 / 16:54
2
answers

Error: String was not recognized as valid DateTime [closed]

I'm trying to convert a string that I pull from the database with the DateTime PrevisaoDataInicio = DateTime.Parse(reader["PrevisaoDataInicio"].ToString()) And gives the following error:    String was not recognized as a valid DateTime....
asked by 03.06.2015 / 13:49
0
answers

Hosting of mvc 4 site with problems in godaddy

I recruited godaddy to publish my site made in mvc4 and framework 4.5. But when running the site, all the error    500 - Internal server error. There is a problem with the resource you   are looking for, and it can not be displayed. I...
asked by 30.05.2015 / 06:54
1
answer

WCF service hosting with endpoint creation?

I noticed that when executing a project of type Rest when open the interface, open the internet browser it lists all the contents of the folder, being necessary to select the ".svc" when executed the ".svc" and open a screen of WCF Test Client,...
asked by 25.05.2015 / 16:37
2
answers

HttpPost action returning null values

I'm developing a web (intranet) system for handling requests in ASP.NET MVC 4 C #. Below are my MVC where I have questions. I'm having a hard time with the HttpPost of a Tipada View, which is returning null value for the "REQUEST" property of th...
asked by 29.05.2015 / 22:52
0
answers

@ HTML.CheckBoxfor does not pass value to the model [closed]

I have the following problem: I have a checkbox on the page but even marking it, in controller Model continues with field lavagem = false . Model public bool lavagem { get; set; } View @Html.CheckBoxFor(m...
asked by 06.06.2015 / 19:46