留言簿

我要留言
留言搜索

2023-01-11 12:14  michael

您好!
在ajax的HtmlForm搜索(Post)形式下,第一次点击搜索后,点页数按钮后,取不到搜索的条件。按照您示例中,在分部视图里new MvcAjaxOptions
        {
            UpdateTargetId = "divresult",
            HttpMethod = "Post",
            DataFormId = "searchform"
        }),DataFormId也是对应的搜索表单的id,但是奇怪的是搜索多点几下的话,再点分页页数可以获得搜索条件
回复:您好,从描述中无法猜出问题原因,您是否有简单的示例可以重现效果?谢谢!

2022-07-26 17:21  TylerKing

看了您的代码,真的挺佩服的。谢谢。
回复:没什么,谢谢支持!

2022-04-21 16:21  Bige Besikci

Hi Yang,

I’d like to begin by thanking you for your contribution to open source ABP Framework.

In the next episode of ABP Community Talk, the topic is:
“How to contribute to ABP Framework”
It will be held on May 10, 2022 at 17:00 UTC and will be in English.

As you are one of the top contributors, I wanted to invite you to be a guest speaker for ABP Community Talks 2022.4. Would you like to be a guest?

The community would love to hear about your contribution experience if you would be interested in being a volunteer contributor during the talk.

I would appreciate it if you could let me know your thoughts. You can reach me at bige.besikci@volosoft.com directly.

Thank you in advance.


Best wishes,
Bige from ABP Core Team

**You can take a look at the previous episodes from: https://youtube.com/playlist?list=PLsNclT2aHJcOsPustEkzG6DywiO8eh0lB
回复:Thank you for your invitation, I'm sorry I missed it!

2022-04-19 03:28  小乌龟

杨老师,您好!使用了Webdiyer.Webcontrols.Mvc控件,点击分页按钮只是刷新了页面,并没有跳转 这个是怎么回事,麻烦老师解答下疑惑 谢谢
回复:您好,请确保分页路由没有问题,能正确生成分页导航链接,并在控制器中能接收到分页参数并根据分页参数返回正确的数据。谢谢!

2022-03-23 02:02  Famas

使用BlazorPager 出现一下报错
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Could not load type of field 'Webdiyer.AspNetCore.BlazorPager:<UriHelper>k__BackingField' (1) due to: Could not resolve type with token 01000012 from typeref (expected class 'Microsoft.AspNetCore.Components.Services.IUriHelper' in assembly 'Microsoft.AspNetCore.Components, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60') assembly:Microsoft.AspNetCore.Components, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 type:Microsoft.AspNetCore.Components.Services.IUriHelper member:(null)
System.TypeLoadException: Could not load type of field 'Webdiyer.AspNetCore.BlazorPager:<UriHelper>k__BackingField' (1) due to: Could not resolve type with token 01000012 from typeref (expected class 'Microsoft.AspNetCore.Components.Services.IUriHelper' in assembly 'Microsoft.AspNetCore.Components, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60') assembly:Microsoft.AspNetCore.Components, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 type:Microsoft.AspNetCore.Components.Services.IUriHelper member:(null)
回复:您好,这个组件比较老,不支持较新的Blazor版本,您可以使用其它更成熟的控件库,如Ant Design Blazor等等,谢谢!

2021-12-15 08:39  无

AspNetPager如何设置能让自定义信息文本在一行,页码等在下一行?现在不管怎样设置都只能在同一行,手机里看这个页面的话,自定义信息和页码都挤在了一起,如果能分两行显示就好了,这个行吗?
回复:您好,您可以直接通过css样式来控制,定义类似于下面这样的css: div#MainContent_main_AspNetPager1>div:first-child{display:block!important;width:100%!important}。谢谢!

2021-03-25 03:36  黄先生

您好,页面使用伪静态之后,updatepanel里面的分页点击没有反应
举例:
比如一个产品详情页面product_detail.aspx?id=1000,下面有产品评论,产品评论是放在updatepanel控件里面的,可以实现无刷新翻页。

现在产品详情页面改成伪静态格式product_detail_1000.html,这时点击updatepanel控件里面的分页按钮,没有反应。

这种情况怎么调整呢?
回复:您好,我不知道您是如何实现伪静态的,UpdatePanel是asp.net webform中的控件,需要相应的客户端脚本才能正常运行,不知道您伪静态后,这些脚本是否存在?您可以把动态页面和伪静态页面生成的html对比一下看看是否可以看出问题。谢谢!

2021-02-26 08:34  kenneth

您好!
         有个mvc分页post形式的问题。
在mvcpager.js中‘$(context.updateTarget).html($(context.updateTarget, data).html());’是什么意思?data有正确的返回值,但是页面不做加载

这是我写的分页设置:@Ajax.Pager(Model, new PagerOptions { PageIndexParameterName = "page", NumericPagerItemCount = 5, ContainerTagName = "ul", CssClass = "pagination", CurrentPagerItemTemplate = "<li class=\"active\"><a href=\"#\">{0}</a></li>", DisabledPagerItemTemplate = "<li class=\"disabled\"><a>{0}</a></li>", PagerItemTemplate = "<li>{0}</li>", Id = "pager", PageIndexBoxId = "pageIndexBox", GoToButtonId = "goToBtn", AutoHide = false, FirstPageText = "首页", LastPageText = "末页", PrevPageText = "上一页", NextPageText = "下一页" }).AjaxOptions(a => a.SetUpdateTargetId("gridTable123321").SetHttpMethod("POST").EnablePartialLoading())

导致在分页中选择第二页或其他页码后,页面不做渲染,但是能正常访问controller的post方法,也能正常返回数据。
回复:您好,这个问题从代码中看不出来是什么问题,最大可能是UpdateTargetId不正确,导致分页内容无法被替换,请用浏览器开发者工具调试一下找找原因。谢谢!

2021-02-19 09:19  刘同学

杨老师您好,我在使用Webdiyer的过程中发现了一个问题,超出索引的提示语有的时候是通过提示框弹出的,有的时候是在分页页面上以红字的形式展示的。
重现场景如下:
初始化页面时,分页页面有10页,输入11后查询是以提示框弹出提示;在筛选操作后,后台重新查询数据,前端重新渲染分页页面之后,比如分页页面有2页,那么此时再输入11查询也是以提示框弹出,但是输入3~10的数字,就是在页面上以红字显示提示语,不再弹出提示框。
也就是说,MVC中再次渲染同一分布页,该控件内部似乎没有初始化总页码,请问这种情况怎么解决?
回复:您好,Webdiyer是我的网名,不知道您说的是哪个控件?是什么方式实现分页的?谢谢!

2021-02-06 09:47  涛哥de小弟

涛哥V587
回复:兄弟客气了:)
;