I have 2 working sections of code and need to put them together
section 1 -
the user can visit a page, view & edit the contents of a database, which includes news articles, titles, related links etc, i've managed to get this working & the data is saved to the db
section 2 -
a javascript news scroller on the homepage of the site writes out a series of divs which are then rotated using javascript & CSS to make it look like they are scrolling, again this works fine. The news articles are drawn in from an array hard coded on the homepage
Problem - i want the user to be able to edit the news feed by editing the content of the DB, sort of like a homemade CMS system but only for 1 page.
How do i take a variable from the DB (i'm guessing using a SQLDataSource) and assign it to a variable which i can then write out to the javascript array & therefore into the news feed on the homepage.
I apologise if this is a simple question but i'm struggling with it, my C# & .net skills are quite limited any help would be very gratefully recieved
Thanks Ben