Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "mhdevelop"

Hello, I want to use non modal page with standard asp.net core validations. When I run this code I get validation error insted of screen updating with error message. I have gone through how to convert model page to standard, but not able to figure out. This is very important in situation where we have complex UI to build and not seen any samples. Here is simple example to create a category.

<div id="details" style="height:100%"> @using (Html.BeginForm()) { @Html.AntiForgeryToken()

    &lt;div class=&quot;form-horizontal&quot;&gt;
        &lt;h4&gt; Category &lt;/h4&gt;
        &lt;hr /&gt;
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        @Html.HiddenFor(model => model.CategoryId)

        &lt;div class=&quot;form-group&quot;&gt;
            @Html.LabelFor(model => model.CategoryName, htmlAttributes: new { @class = "control-label col-md-2" })
            &lt;div class=&quot;col-md-10&quot;&gt;
                @Html.EditorFor(model => model.CategoryName, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.CategoryName, "", new { @class = "text-danger" })
            &lt;/div&gt;
        &lt;/div&gt;

        &lt;div class=&quot;form-group&quot;&gt;
            @Html.LabelFor(model => model.Description, htmlAttributes: new { @class = "control-label col-md-2" })
            &lt;div class=&quot;col-md-10&quot;&gt;
                @Html.EditorFor(model => model.Description, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.Description, "", new { @class = "text-danger"})
            &lt;/div&gt;
        &lt;/div&gt;

        &lt;div class=&quot;form-group&quot;&gt;
            &lt;div class=&quot;col-md-offset-2 col-md-10&quot;&gt;
                &lt;input type=&quot;submit&quot; value=&quot;Save&quot; class=&quot;btn btn-default&quot; /&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
}

&lt;div&gt;
    @Html.ActionLink("Back to List", "Index")
&lt;/div&gt;

</div>

The Category Class [Key] [Column("CategoryID")] public int CategoryId { get; set; }

    [Required]
    [StringLength(15)]
    public string CategoryName { get; set; }
    
    [Column(TypeName = "ntext")]
    public string Description { get; set; }

Thanks for any help with example insted of pointing to standard documentation, which I have already tried.

Thanks V

I am facing same problem, did you come up with solution?

Where do i use this code? in controller? How do inject _xxxRepository into controller? Any example would help. we are using asp.net core and jquery

Thanks v

Hello, I have a situation where i need to inject or access my EF DbContext from controller, please let me know how to access it . I have tried the below var ctx = IocManager.Instance.Resolve<PLCMDbContext>(); it gives error that it had depedency on options

Also I tried controller construction inject and get same error. public constructor( IDbContextProvider<MyDbContext> dbContextProvider) { _ctx = dbContextProvider.GetDbContext(); }

get same error message.

Thanks

Thanks that helps

Hello, This document does not tell how to use it from asp.net zero menu system. Netzero has two items in menu

  • Dyamic Parameter
  • Dyanamic Entity Parameter

I create dyamaic parameter color. Then went to Dyanamic entity parameter, the list is showing only "USER" as entity. Why it is not showing other entities. Once i added "color" paramter to "User Entity" and go to User Management and Edit I do not see that parameter to fill it.

Is there documentation showing how to use NON Coding method of Dyanamic Parameters?

We are using Asp.net core mvc with JQuery and netzero 8.3.1

Hello,

We are building intranet application which we need to implemEnt ad authentication for employees and forms authentication for temporary users. How can I achieve this with asp.net zero. based on username let us say employees use email Id and teMPorary employees use non email ad, hoe do I authenticate both? One with DB and other with AD.

Thanks V

Thank you, that work around works. I am not sure what new challenges it brings. Also I noticed if I remove services.NetwonsoftJason() the telerik will work, but Abp will stop working.

Thank you very much for quick response. I will remove you from Github repo.

Thanks V

If you are going to pull from repo i tried couple more things. Created new controler KendoController and Created few views with own layout to see if it helps. There are two views one ClientBound and other ServerBound. The ClientBound still does not work. Not sure something in startup in interfearing with databinding for kendo grid.

Thanks v

Showing 1 to 10 of 22 entries