VB .NET 中是否有与 Rails 部分类似的东西?

发布于 2024-07-17 04:45:20 字数 94 浏览 4 评论 0原文

我是 VB .NET 的新手,如果可能的话,我想要类似 Rails 部分的东西 - 可以在页面脚本中(可能在循环内)引用的 HTML 模板位。 我知道可能不会有这样的事情。

I'm new to VB .NET, and if possible, I'd like something like Rails partials - bits of HTML template that can be referenced in a page's script, possibly within a loop. I know there might not be anything like that.

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

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

发布评论

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

评论(3

筱果果 2024-07-24 04:45:20

Castle 项目是 ASP.NET / ADO.NET 的一个有趣的开源替代品。 除此之外,Castle 项目还为 .NET 提供了一个类似 Rails 的开发框架。
http://jamescrisp.blogspot.com/2007/06 /castle-project-rails-for-net.html

The Castle Project is an interesting open source alternative to ASP.NET / ADO.NET. Among other things, the Castle Project provides a Rails-like development framework for .NET.
http://jamescrisp.blogspot.com/2007/06/castle-project-rails-for-net.html

乙白 2024-07-24 04:45:20

您可以将 html 读入字符串,然后使用占位符/文字控件将其吐出。 该函数如下所示:

Dim tmp as string = GetHtmlFragement()
Placeholder1.controls.add(New LiteralControl(tmp))

You can read html into a string, and spit it out with a placeholder / literal control. the function is like so:

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