Click here to Skip to main content
16,017,944 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I want to include some hyperlinks inside the "marquee" tag with the values from the database so as to make the page dynamic.

How should I do that??

Thank you
Posted
Updated 15-Oct-10 1:59am
v2

1 solution

in the page load of the aspx page,
open connection to database,
execute your sql on it, use an executeScalar to get a string back or whatever..

give your 'marquee' an ID and Runat = server

in the code set the innerhtml of the marquee = the string from the database


basically
marquee1.innerhtml = "<a href=\"" + sqlconn.executeScalar(\"select link from linkstable where linkid=121 \" + ") a> Click Me Scrolling Link </a>"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900