Good evening, gentlemen.
I am doing a user registration in college work and at logar this error appears.
How can I resolve?
privateUsuarioMapear(DataRowregistro){varusuario=newUsuario();usuario.Nome=Convert.ToString(registro["NOME"]);...
Remembering that while running it does not return any error
Controller
using CRUD.Aplicação;
using DocumentoObjeto.dominio;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespa...
I'm starting to study MVC + Razor and in basic CRUD example, I'm trying to put the fields in two columns, as if they were using in HTML.
But my code only works if I remove the @using (Html.BeginForm()) .
Using @using (Html.BeginForm(...
I'm developing an application that is communicating with Secure Paging Checkout through the Web Server link that is working perfectly, after making the payment PagSeguro provides the possibility to indicate a page in my application to receive...
I have a composite key table (PersonId and ProfissaoId). The PersonId property is in a hidden and ProfissaoId gets accumulated in a data-id. Stays two information must be passed to the controler so I can delete the record. Currently, I have this...
I have two manners, one I call within the other, but it's getting below.
Here's how I'm doing:
First I open this:
<div class="modal fade" id="myModalAdd">
<div class="modal-dialog">
<!-- Modal content-->...
People have some better way to do these routes? Or for every action in my Controller, will I have to create your routing?
app.UseMvc(routes =>
{
routes.MapRoute(
"Login",
"Login",...
I'm creating a RepositoryBase (Repository Pattern) with EntityFramework Asp.Net Core, and in it I'm creating a Where method, where I pass an entity where expression. So far the method works perfectly, but in this same method I would like to pass...
I'm developing a web report (ASP.NET + BOOTSTRAP) and opening it on my mobile phone looks like this:
Wouldyouliketoresizetheselinestotheendortakeoutthesidelines,wouldthatbepossible?Thecodelookslikethis:@modelPagedList.IPagedList<Relatorio...
I have this menu in _Layout.cshtml
@if (Response.Cookies["UserSession"]["UserRole"] == "Rh" || Response.Cookies["UserSession"]["UserRole"] == "Admin")
{
<li>...