Questions tagged as 'asp.net-mvc'

1
answer

Get current user's email

I've developed an application, but I want to get the current user's email (because of aesthetic and requirements issues). I can only get the name of the user through the following code: @HttpContext.Current.User.Identity.Name How to get...
asked by 13.12.2018 / 15:59
1
answer

Doubt vscode - ASP.NET [closed]

asked by 28.12.2018 / 14:42
2
answers

Problem deleting a record, fetch the next one

I'm trying to do in the code, a page edit, then the user on this edit page, it can delete the record, and if it delete, the system has to check, if there is a next record, it goes to edit screen next, if the next id does not exist, it tries the...
asked by 09.08.2018 / 13:58
1
answer

LINQ query for object with a sub list

I have the following structure: public class Insumo{ public int Insumo_id { get; set; } public List<InsumoDados> Dados{ get; set; } } public class InsumoDados{ public int Desc { get; set; } public decimal Valor{ get; set...
asked by 27.07.2018 / 23:39
1
answer

Sybase database connection with C #

I have a Sybase database file on my machine, I want to make this database available in my C # application, how do I make this Sybase database file available, and how do I access that database with C #?     
asked by 17.07.2018 / 22:27
1
answer

Html and Css back a row in the table

There is a For that runs line by line a list. This list returns me input and output of a process. The problem is that it does not return on the same line because it is either input or output. I would like to show in the middle column the proc...
asked by 05.07.2018 / 12:52
2
answers

Changes Webservice's "Web Reference URL" added by add web reference [closed]

I wonder if it would be possible and how to do this change by picking up the web.config address     
asked by 05.07.2018 / 14:14
1
answer

This error message is appearing when I run my program

When I run my program, the following error occurs: >Error 1 'AgendaMVC.Models.AgendaDBContext' does not contain a definition for 'Agenda' and no extension method 'Agenda' accepting a first argument of type 'AgendaMVC.Models...
asked by 06.11.2014 / 17:44
1
answer

Flag environment when sending email to user

Personal I need your help. Every form that is registered in my system it sends in e-mail to some people warning that it was registered, only that I have two environments, one of homologation and one of production. I need when I send an email, it...
asked by 19.01.2018 / 12:33
1
answer

Align controls with bootstrap

I have this view @{ ViewBag.Title = "ExcelFinancing"; Layout = "~/Views/Shared/_Layout.cshtml"; } <!DOCTYPE html> <html lang="pt-br"> <head> <meta name="viewport" content="width=device-width" /> <tit...
asked by 18.09.2018 / 21:41