Questions tagged as 'asp.net-mvc'

2
answers

@ Html.ActionLink and Url.Action are not taking the route of the controller annotation

I have the following method in the control: [Route("video/categoria/{categoria}/{page?}/{sort?}")] public async Task<ActionResult> Index(string categoria, int? page, string sort) { ... } My RouteConfig.cs: public static void Regis...
asked by 07.11.2015 / 02:05
1
answer

Querying using linq to sql in ASP.NET MVC

I have a question about how to return the records according to the query. I do not know what might be wrong, but the query is not returning according to what was passed. I have my controller: public ActionResult Index() { //retornar tod...
asked by 05.04.2015 / 15:27
3
answers

Display DateTime field in View with hours, minutes, day / month / year?

How to manipulate datetime and show in view in the following format? HH:MM dd/MM/aaaa     
asked by 18.03.2015 / 14:37
1
answer

Change HTACCESS to Web.config

Hello, Is it possible to convert this HTACCESS code to a Web.config file? RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)\?*$ index.php?route=$1 [L,QSA]     
asked by 26.01.2015 / 13:39
1
answer

Apply style to the first line after \ n

I have a textarea that would receive a text. The style application will be minimal, so I did not want to use some editor like CKEditor, for example. I believe the easiest way to work is to apply a style to the item /n I'll be ge...
asked by 26.01.2015 / 15:04
1
answer

Publish ASP.Net site

I made my first test site in ASP.Net and when I'm going to publish it to my normal ftp (I'm using visual studio 2013) I open the domain link gets all these folders and such ... How do I publish it? What I have to do?     
asked by 22.07.2015 / 02:21
1
answer

Error Login Asp.net MVC

I can not validate my login, follow the code below: public ActionResult Login(FormCollection collection) { AlunoAplicacao bdAluno; bdAluno = AlunoAplicacaoConstrutor.AlunoAplicacaoEF(); var Aluno = bdAluno.ListarT...
asked by 13.01.2015 / 17:49
1
answer

How to list items per logged-in user in ASP.NET MVC

I have an application that manages Courses and I have the following problem, student makes your enrollment in courses >, but when the student accesses the page where they list the courses they are enrolled in, this list is also listin...
asked by 24.06.2015 / 07:28
1
answer

aspnetmvc6 I can not update

To test the visual studo 2015 I created an asp.net mvc project and so wanting upgrades it to use the new version 6 beta. but with an error here How do I resolve this? I had to update the entity framework gave it Installing 'EntityFra...
asked by 27.12.2014 / 16:57
2
answers

Problems with Modal

In my project I have type an image gallery. So far I upload the image and it is displayed on the page without any problem. But now I need to click on the image to open a modal with the image in a larger size. But I can not do this dynamically...
asked by 02.01.2015 / 22:44