小编You*_*wMe的帖子

获取使用MemoryCache类c#缓存的所有缓存对象

我想检索使用MemoryCache添加的所有缓存对象.

我尝试了以下但它没有检索它们

System.Web.HttpContext.Current.Cache.GetEnumerator(); System.Web.HttpRuntime.Cache.GetEnumerator();

注意:Retreive all不仅仅意味着我所知道和创建的,我的意思是在应用程序中创建的每个缓存对象.

.net c# asp.net asp.net-mvc memorycache

6
推荐指数
3
解决办法
9676
查看次数

如何在添加窗口中通过html帮助器更改弹出窗口网格的标题

我正在使用弹出式kendo网格,我使用添加新记录和编辑模式,我希望在添加新记录时通过html帮助程序更改弹出窗口kendo网格的标题.

    <div class="k-rtl">

    @(Html.Kendo().Grid<KendoSample.Models.Person>()
   .Name("grid")
   .Columns(columns =>
    {
        columns.Bound(p => p.PersonId).Title("Person Code").Width(100).Sortable(true);
        columns.Bound(p => p.Name).Title("Name").Width(200).Sortable(true);
        columns.Bound(p => p.Family).Title("Family").Sortable(false);
        columns.Command(c => { c.Edit().Text("Edit").CancelText("Cancel").UpdateText("save"); c.Destroy().Text("Delete"); });            
    })
.Pageable()

.ToolBar(s => { s.Create().Text("?????"); })
.Editable(c => { c.TemplateName("Default").Mode(GridEditMode.PopUp); c.Window(x => x.Title("??????")); })


.Scrollable()
.Sortable()
.HtmlAttributes(new { style = "height:430px;" })
.DataSource(dataSource => dataSource
    .Ajax()
                            .Model(c => c.Id(p => p.PersonId))
                            .Create(c => c.Action("Read", "Home"))

    .Read(read => read.Action("EditingPopup_Read", "Grid"))
    .Update(update => update.Action("EditingPopup_Update", "Grid"))
    .Destroy(update => update.Action("EditingPopup_Destroy", "Grid"))                                


                            .ServerOperation(true)
    .PageSize(8)
    .Read(read => read.Action("EditingPopup_read", "Home"))
 )
 .Sortable() …
Run Code Online (Sandbox Code Playgroud)

c# asp.net-mvc popup kendo-ui kendo-asp.net-mvc

5
推荐指数
1
解决办法
8556
查看次数