使用分页的 .NET 网格 - 搜索并滚动到结果

发布于 2024-10-10 06:56:22 字数 319 浏览 0 评论 0原文

我有一个 ASP .NET Web 应用程序。我对 .Net 相当陌生,但是是一名长期的 SQL 和 Java 程序员。我需要实现搜索功能,因为它目前在旧应用程序中实现。有一个显示的可分页数据网格和一个搜索框。您输入搜索条件和第一个匹配的网格页面。 “下一个匹配”按钮页面到下一个项目等。这样用户就可以看到他们的搜索项目在数据层次结构中的位置。我见过搜索条件过滤数据、限制数据结果的示例。这不是我需要的。

有人可以为此指出正确的方向吗? .NET 可以吗?

我有一些疯狂的定制想法,但我不想重新发明轮子。

编辑 - 为了澄清,是否有现有的 .Net 控件或功能可以执行此操作?

I have an ASP .NET web application. I'm fairly new to .Net but a longtime SQL and Java programmer. I have a requirement to implement a search feature as it is currently implemented in the legacy application. There is a pageable grid of data displayed and a search box. You type your search criteria and the grid pages to the first match. A "next match" button pages to the next item etc. This way the user sees where their search item falls in the hierarchy of the data. I have seen examples where the search criteria filters the data, limiting the data results. This is not what I need.

Can someone please point me in the right direction for this? Is it possible with .NET?

I have some crazy custom ideas but I don't want to reinvent the wheel.

Edit - To clarify, is there an existing .Net control or functionality that does this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

捎一片雪花 2024-10-17 06:56:22

您说这是一个现有的应用程序,并且您通常编写 Java,所以我认为现有的应用程序是用 Java 编写的。 Java 和 C# 非常相似,因此您几乎可以将其中一个并排编写。

至于如何做到这一点的逻辑,现有的应用程序是如何做到的?为什么要重新发明轮子?仅要求您将逻辑重新编码到新平台中。不要放弃现有解决方案提供的多年经验。

You said this was an existing application and that you normally write Java, so I would presume the existing app is written in Java. Java and C# are very similar, so you could almost write the one side by side from the other.

As for the logic of how to do this, how does the existing app do it? Why reinvent the wheel? You've only been asked to recode the logic into a new platform. Don't give up the years of experience the existing solution provides.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文