what am I used to so far when I need to dynamically set the style of html elements (using web forms), I installed hidden input data, passed data from the code behind and used jQuery to manipulate some elements.
therefore c# request> passes data to the hidden field html> jQuery read and execute.
chosenHtmlElm.css({ 'background-image': 'url(images/RegF.png)' }, { 'visibility': 'visible' });
Is there a simple and elegant solution, or should I stick to my old school technique?
web page with content items [type1] [default] [type2] [default] [] [] [] [] [] []
this may lead to an article / category on the website ...
therefore type1 has a left corner image, type 2 has a right angle image by default, has no
I am thinking of logic to give everyone a Content item category identifier, and then I could build some logic to control it, reorder, change icon ...
jquery c # css asp.net-mvc-4
Ronenmaziner
source share