Questions tagged as 'asp.net-mvc'

1
answer

Dropdown List coming from a table in the Database

I'm developing at asp.net- mvc and I have the following problem: I need to create a dropdown list that displays the name of the instructors registered in the Database. The CRUD is already working perfectly. I used the Entity Framework...
asked by 29.06.2015 / 17:50
1
answer

Screen Search Field (ASP.Net - MVC)

Good afternoon, I wonder if anyone could help me. I'm a beginner in programming, and I'm developing a web system, and I need a screen search of the screens that I've already created. As I use the MVC method, I wanted to know if I have to c...
asked by 02.07.2015 / 21:38
2
answers

Validation via Javascript

In my application that manages Courses , I'm in need of a validation via javascript . I have a screen where student signs up for a particular course, what I wanted is that when he clicks the signup button, the Enrollment completed su...
asked by 03.07.2015 / 15:05
2
answers

Single-field validation in form in Asp.Net MVC

I'm developing an application that manages enrollments in courses, and in my registration form I have the CPF field, and I would like to know how I can make this field unique, that is, bar the user from making another registration with the same...
asked by 02.06.2015 / 20:33
1
answer

Ajax.BeginForm returning PartialView as View

Good Night! I'm working on a Bed Management project. In a given View, I am displaying the Registered Nurses, and for filtering purposes , a field where you can search for the name of the Department to which the ward ( s) belongs. As picture...
asked by 02.06.2015 / 00:09
1
answer

Problem with ViewBag and ViewData for Creating Breadcrumbs

I need to get back from my controller to my data view project to mount the breadcrumb. My problem is: If I have ViewBag or ViewData or TempData, and the user is using two different windows, I can show the wrong data. There is a more "secur...
asked by 08.10.2015 / 16:50
1
answer

What components should I use for color selection and photos in ASP.NET?

I have an ASP.NET solution using bootstrap for page styling and would like recommendations for two component types: One for color, which returns the color code in hexadecimal, for example: ffffff or #ffffff; And one for uploading photos, i...
asked by 18.09.2015 / 21:07
2
answers

@If inside a body tag

How to put a if condition inside a <body> tag? When trying to do: @if (Request.Path.Substring(Request.Path.LastIndexOf("/") + 1).ToLower() == "default") { <body class="home" } else { <body> } It does...
asked by 21.05.2015 / 19:16
1
answer

Asp Net MVC Per Block Permission

I am separating the permissions in my application, I am using a custom authorization with the class Authorize, I already can separate permission by action and controller, I would like to know how I use only for snippets of code, for example, on...
asked by 31.07.2015 / 15:49
1
answer

Asp Net MVC Authentication Extending AuthorizeAttribute

I'm doing authentication extending AuthorizeAttribute, I have two doubts, in my DDD application, am I going to create this class in DAL? And how do I leave this global class to use on all controllers?     
asked by 31.07.2015 / 16:24