jquery - DOM replacement on backend (asp.net) -
i new asp.net , having on front-end replace dom node:
$('foo:eq(0) bar:eq(1)').html('hello world'); what best way in asp.net backend?
- node.js + jquery
- csquery
is there simple solution doesn't need plugin? razor + xpath?
you can't use nodejs+jquery if you're using asp.net.
with csquery replacement quite obvious:
cq.create("your html string")['foo:eq(0) bar:eq(1)'].html('hello world').render(); csquery comes asp.net mvc plugin make development easier. depends on use case.
if don't want external dependencies can use linqtoxml think if you'd run jquery queries , use jquery methods closest you're going in .net csquery
Comments
Post a Comment