JavaScript and repeater

  • Thread starter Thread starter Tomislav Bartolin
  • Start date Start date
T

Tomislav Bartolin

Hi,

I have a very limited knowledge of JavaScript so any help would be
appreciated.
I have to modify an existing JavaScript code which performs some simple text
scrolling. The text to scroll is defined
in a variable like this:

var content=' some text and HTML formatting...';

Is there a way to populate the contents of this variable on the server with
data from a database, by using a databinded
repeater control?

Thanks
 
One option is to put the string in a page-level protected variable and refer
it from the .aspx page using <%= %> syntax:

var content='<%= protectedVar %>';

Hi,

I have a very limited knowledge of JavaScript so any help would be
appreciated.
I have to modify an existing JavaScript code which performs some simple text
scrolling. The text to scroll is defined
in a variable like this:

var content=' some text and HTML formatting...';

Is there a way to populate the contents of this variable on the server with
data from a database, by using a databinded
repeater control?

Thanks
 
Back
Top