Adam Rackis
Adam Rackis

Reputation: 83366

Alternatives to asp.net ajax 4.0 templates

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?

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?

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.

EDIT

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.

Upvotes: 1

Views: 630

Answers (2)

Andy T
Andy T

Reputation: 87

Definitely consider jQuery Templates. We use them quite extensively in WebForms with ScriptServices as a data provider. There is a very small learning curve.

Also check out KnockoutJS, which integrates seamlessly.

Upvotes: 1

Icarus
Icarus

Reputation: 63964

Adam, coincidentally, I am using JQuery to retrieve some server side data calling Web Services via Ajax and binding the result on the client side. On my particular case, I am only showing data in a tabular manner, so I am using the jquery datatables plugin (which is fantastic, in my opinion; the API is well documented and easy to extend if you need to).

If you need to show data differently, I think you'll need to write quite a good amount of boilerplate javascript code.

EDIT: I just saw your link reagarding Jquery Templates and looks really cool. I didn't know it existed :) Thanks!

Upvotes: 1

Related Questions