Base solution for your next web application

Activities of "benjamim"

Question

I did all the steps in this tutorial, but the result is always returning zero records.

<a class="postlink" href="https://www.aspnetzero.com/Documents/Developing-Step-By-Step-MPA">https://www.aspnetzero.com/Documents/De ... y-Step-MPA</a>

Answer

WORK!!!

I'm having trouble consuming Web Api with Ionic. I need to install any package or configuration to be able to authenticate and consuming methods of WebAPI?

I use Ionic and have problem with Cross-domain ...

see my post #1586

Question

I need a html editor, which is the best option? There is this implemented in official thema <a class="postlink" href="http://keenthemes.com/preview/metronic/theme/admin_4/components_editors.html">http://keenthemes.com/preview/metronic/ ... itors.html</a>

Does anyone know any better :?:

Even with all the fields filled keeps popping validation error

CSHTML Code

---------- START ----------------- @using Test.Noticias <div> <form name="noticiaCreateOrEditForm" role="form" novalidate class="form-validation"> <div class="modal-header"> <h4 class="modal-title"> <span ng-if="vm.noticia.id">@L("EditNoticia"): {{vm.noticia.titulo}}</span> <span ng-if="!vm.noticia.id">@L("CreateNewNoticia")</span> </h4> </div> <div class="modal-body"> <div class="form-group form-md-line-input form-md-floating-label no-hint"> <input class="form-control" type="text" name="NoticiaTitulo" ng-class="{'edited':vm.noticia.titulo}" ng-model="vm.noticia.titulo" required maxlength="@Noticia.MaxTituloLength"> <label>@L("Titulo")</label> </div> <div class="form-group form-md-line-input form-md-floating-label no-hint"> <input class="form-control" type="text" name="NoticiaDescricao" ng-class="{'edited':vm.noticia.descricao}" ng-model="vm.noticia.descricao" required /> <label>@L("Descricao")</label> </div> @enviarPush@ <div class="md-checkbox"> <input id="Setting_AllowSelfRegistration" class="md-check" type="checkbox" name="AllowSelfRegistration" ng-model="vm.noticia.enviarPush"> <label for="Setting_AllowSelfRegistration"> <span class="inc"></span> <span class="check"></span> <span class="box"></span> @L("EnviarNotificacaoPush") </label> </div> <div ng-show="vm.noticia.enviarPush" class="form-group form-md-line-input form-md-floating-label no-hint"> <input class="form-control" type="text" name="TituloPush" ng-class="{'edited':vm.noticia.tituloPush}" ng-model="vm.noticia.tituloPush" /> <label>@L("TituloPush")</label> </div> <div ng-show="vm.noticia.enviarPush" class="form-group form-md-line-input form-md-floating-label no-hint"> <input class="form-control" type="text" name="DescricaoPush" ng-class="{'edited':vm.noticia.descricaoPush}" ng-model="vm.noticia.descricaoPush" /> <label>@L("DescricaoPush")</label> </div> <div class="form-group form-md-line-input form-md-floating-label no-hint"> <input class="form-control" type="text" name="Texto" ng-class="{'edited':vm.noticia.texto}" ng-model="vm.noticia.texto" /> <label>@L("Texto")</label> </div> </div> <div class="modal-footer"> <button ng-disabled="vm.saving" type="button" class="btn btn-default" ng-click="vm.cancel()">@L("Cancel")</button> <button type="submit" button-busy="vm.saving" busy-text="@L("SavingWithThreeDot")" class="btn btn-primary blue" ng-click="vm.save()" ng-disabled="noticiaCreateOrEditForm.$invalid"><i class="fa fa-save"></i> <span>@L("Save")</span></button> </div> </form> </div> ------------END------------------

Class Dto --------- START -------------- using System.ComponentModel.DataAnnotations;

namespace Test.Noticias.Dto { public class CreateNoticiaInput { public virtual int? Id { get; set; } public virtual int TenantId { get; set; }

    [Required]
    [MaxLength(Noticia.MaxTituloLength)]
    public virtual string Titulo { get; set; }

    [Required]
    [MaxLength(Noticia.MaxDescricaoLength)]
    public virtual string Descricao { get; set; }

    [Required]
    public virtual string Texto { get; set; }

    [MaxLength(Noticia.MaxTituloPushLength)]
    public virtual string TituloPush { get; set; }

    [MaxLength(Noticia.MaxDescricaoPushLength)]
    public virtual string DescricaoPush { get; set; }

    public bool EnviarPush { get; set; }
}

}

---------END-----------

Object {id: 3, tenantId: 1, titulo: "Titulo new", descricao: "Descrição new", texto: "texto new",titulo:"Titulo new"tituloPush:"Titulo push"}

<cite>ismcagdas: </cite> Can you check json send to server via ajax request ? And share it if it is possible ?

TKS A LOT!!!!

Url must use the following format <a class="postlink" href="http://www.domain.com/my-url-slug-here">www.domain.com/my-url-slug-here</a> .I have created the database and all data in the application structor. But in Web MVC I do not know how to implement.

I can create with a <a class="postlink" href="http://www.mydomain.com/br/url-to-Brazil">www.mydomain.com/br/url-to-Brazil</a> and <a class="postlink" href="http://www.mydomain.com/en/url-USA">www.mydomain.com/en/url-USA</a> for multi language? to have the same content in different languages?

Showing 1 to 10 of 25 entries