I have no idea how to get Total Value = 755.00 from this select with Linq ?
| ID |Qtde | Valor | Total |
| 1 | 10 | 23.00 | 230.00|
| 1 | 15 | 10.00 | 150.00|
| 1 | 15 | 25.00 | 375.00|
Total: 755.00
I im...
I am developing an application that has 4 layers Dominio, Infra, Servico e Web When I have access a route for example Home/Index it says that there is no constructor without parameters, my constructor looks like this:
public Home...
In my layout I have an option where I show some notifications, so include a partial layout in the layout:
@Html.Partial("_PartialNotificacoes")
@model IEnumerable<Generico.Dominio.TB_NOTIFICACAO>
@if (Model.Count() > 0)
{
fo...
Is there any gain in performance when using jQuery to perform ajax requests in relation to the post using Html.BeginForm?
@using (Html.BeginForm("Create", "Teste")
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true, ""...
I have two related methods. Patrimonio and Categoria :
[Table("Patrimonios")]
public class Patrimonio
{
[Key]
public Guid PatrimonioId { get; set; }
public Guid CategoriaId { get; set; }
[Required]
[StringLen...
I have this form
@using (Html.BeginForm("PacoteAdd", "Pacote"))
{
<input type="hidden" name="email_cobranca" value="*****@hotmail.com" />
<input type="hidden" name="tipo" value="CBR" />
<input typ...
I have the following situation, in my _Layout I'm checking:
@{
var controller = HttpContext.Current.Request.RequestContext.RouteData.Values["Controller"].ToString();
var view = HttpContext.Current.Request.RequestContext.RouteData.Val...
I would like some help. I am using ReportView to generate a report from the id passed as parameter:
public ActionResult Relatorio(Guid id)
{
LocalReport relatorio = new LocalReport();
//Caminho onde o arquivo do Report Viewer e...
Good,
I have the following code, in a function Javascript ,
function(){
var noDataIcon = document.createElement("img");
noDataIcon.src = "~/Images/delete_database.png";
}
It happens to give me an error in src, can n...
How to change the size of TextBoxFor ? I followed exactly that solution and it had no effect on my form: [ Defining a larger size for a TextBoxFor
The Bootstrap CSS file is being loaded before;
HTML:
@model Merc.Dominio.Entidade.Cola...