I am using jquery Carosellite and Cycle to display images like frames. How to pass values to the properties like speed, visible ect from codebehind(c#).
Ex html code:
<script type="text/javascript" language="javascript">
$(function() {
$(".anyClass").jCarouselLite({
btnNext: ".next",
btnPrev: ".prev",
visible: 1,
scroll: 1,
speed: 1000
});
});
</script>
Geetha.
If you don’t like mixing ASP.NET code your mark-up you could also do this:
markup:
javascript:
code behind:
Note: if the HiddenFields are on a UserControl do not use the id to reference the elements, use class instead, or another attributes; or to avoid this: use the RegisterHiddenField:
In this way, you don’t need to declare HiddenFields in the markup.