问题描述
假设我只能和asp.net web表单(我喜欢使用MVC局部视图),请问有什么好的替代品ASP.NET AJAX 4.0的客户端模板?
Assuming I'm stuck with asp.net web forms (I'd love to use MVC partial views), are there any good alternatives to asp.net AJAX 4.0 client-side templates?
在换句话说,有没有一些方法来指定一些HTML,用占位符数据属性,而我可以再绑定一个JSON结果。是否有良好的jQuery插件做到这一点?
In other words, is there some way to specify some html, with placeholders for data properties, to which I could then bind a JSON result. Are there any good jQuery plugins to do this?
我问,因为结果的基础上,我从谷歌看到,这个库似乎并没有得到广泛的应用,大部分搜索结果是从2008 - 2010年。 这个问题似乎证实了这种怀疑。
I ask because based on the results I'm seeing from Google, this library doesn't seem to be widely used—most search results are from 2008-2010. This question seems to confirm that suspicion.
修改
我鄙视回答我的问题,但是的(jQuery的模板),在我看来是最好的选择。如果任何人有任何输入,请张贴。
I despise answering my own question, but this link (jQuery Templates) seems to me to be the best bet. If anyone else has any input, please post.
推荐答案
一定要考虑 jQuery的模板。我们使用它们相当广泛的的WebForms与ScriptServices作为数据提供者。有一个非常小的学习曲线。
Definitely consider jQuery Templates. We use them quite extensively in WebForms with ScriptServices as a data provider. There is a very small learning curve.
另外,请查阅 KnockoutJS ,它无缝集成。
Also check out KnockoutJS, which integrates seamlessly.
这篇关于替代asp.net AJAX 4.0模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!