Questions tagged as 'asp.net-mvc'

1
answer

Why does my Address template return null after the postback? [duplicate]

Why does my Endereco template return null after the postback?: Template:publicclassPaciente{publicPaciente(){Endereco=newList<Endereco>();}[Key]publicintPacienteID{get;set;}publicstringNome{get;set;}publicstringProfissao{get;set;...
asked by 29.04.2018 / 16:23
0
answers

ModelSatate.IsValid always false

When trying to write my model to the database, when trying to validate the ModelState.IsValid, it is always false as if it had fill fields pending. I know it's due to the DropDownList that returns me a string in fields that are objects. What is...
asked by 19.04.2018 / 03:25
1
answer

How do I confirm the email using Sendgrid?

In my application when the user registers, an email has to be sent to him to confirm his account. I did everything here so something is wrong, could anyone help me? Initially I created a class called ServicoEmail: namespace Ebase.EmissorNFeW...
asked by 24.04.2018 / 14:57
0
answers

Sendgrid not delivered!

Every time a user logs in to my application form, an email is sent to the application to confirm the registration, but if the email entered in the form is Hotmail / Outlook it will not receive this confirmation, this is occurring because microso...
asked by 25.04.2018 / 14:36
0
answers

Save value of a variable inside a controller to use in method executed in another DLL

I need to save some information in User Login and use this information in another DLL. EX: Projeto.Web Projeto.Domain.dll When the user logs in to the Project.Web controller UserController, I need to save the project that the user...
asked by 17.04.2018 / 18:16
0
answers

Asp.Net MVC Inner Join statement return pre-defined values if the search does not produce results

I have the following statement in the controlller public JsonResult GetLote(DateTime dataAbate, int numeroSequencia) { db.Configuration.ProxyCreationEnabled = false; var query = from a in db.Lotes join b in db.LoteGeneros on a.Lot...
asked by 16.04.2018 / 15:51
0
answers

Controller variable is null in ajax get

I have List of objects that is instantiated when the view is created, when a value in the dropdownlist is selected, I use ajax to make a request to check which of the objects within that List is the corresponding dropdownlis...
asked by 16.04.2018 / 18:19
1
answer

Set login page by user profile

Good afternoon guys, I need your help. I have two access profiles to my system. "Master-IT" and "Developer" This is my system login controller [HttpPost] public ActionResult Index(Usuario usr) { if (ModelState...
asked by 12.04.2018 / 21:59
0
answers

Sign in with email and not with username in asp net mvc, how to solve?

Well, I have an application being developed in asp net mvc, in the same the user is logged in and after entering it is displayed the message "Hello, so please, I had to change some things in my AccountController, and then I found the problem, be...
asked by 12.04.2018 / 19:40
0
answers

How to do Table with two foreach close tr / tr Asp.Net MVC

I need to make a table that each line has the information as picture below NoticethatinLot1toCitythedatadoesnotrepeateveryforeach,andonlyfromtheSpeciescolumndoesthedatarepeat,inthisrowtheforeachloops3timesandtheBatchcolumnsuptoCitysuffersarowsp...
asked by 15.04.2018 / 06:00