473,386 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Marquee from database

Ali

I am retrieving News headlines and put it inside a marquee as hyperlinks.
When the user clicks on the headline i want to display the news page with the
specific news detail. the retrieving is fine but I don't know how can i put
the news id , where to keep it,,,, to request it in the news page. so when
the users clicks on the headline it recognises the id and show the specific
details for that news id.
Dim da As New SqlClient.SqlDataAdapter("select Top 3 * from Announcements
order by posteddate DESC", con)
con.Open()
da.Fill(dt)
con.Close()
For Each dr In dt.Rows
strScroller &= "<a
href='News.aspx?Category=Announcements&ID={0}'> " &
dr.Item("Headline").ToString & "</a>" & " &nbsp;
"
Next
strScroller = "<marquee id=mar1 direction=left>" & strScroller &
"</marquee>"
Literal1.Text &= strScroller
<td colspan="2" style="width: 100%; height: 18px;" bgcolor="#058c6e">
<marquee direction=left scrollamount="10" scrolldelay="700"
style="color:White"><strong><asp:Literal id="Literal1"
runat="server"></asp:Literal></strong></marquee>
</td>
Nov 19 '05 #1
1 5049
Hi Ali,

There are a few places you could place the news id and have it
available on the news page. You could store it in a session variable,
or pass it in the querystring, or even use a hidden form field.

You can find many good examples by googling it..

http://www.google.ca/search?hl=en&q=...on+state&meta=

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jo_Calico | last post by:
I love the Dynamic Drive cross browser marquee script. I'd like to make the text loop immediately after completion, so the beginning runs right after the end (does that make sense?). Could anyone...
1
by: Sketcher | last post by:
Hi all, I am looking to add the following scrolling marquee to my website (see code below) However instead of using the marquee methods I want to use and as a person rests their mouse on...
1
by: et | last post by:
Does anyone know if we can set a marquee to a dataset? Or how would I use a database with a marquee?
3
by: Daniel | last post by:
Hi All, How to use marquee with sql database to display link and title? In addtion, is it free to use marquee control?? Your help will be appreciated. thank you in advance. Best regards,...
2
by: P2P | last post by:
Hi I am wondering if someone can help me here with the "perfect" marquee vertical scrolling script I've found. This marquee is great for me as it will call an external html page. This allow...
8
praclarush
by: praclarush | last post by:
Ok, I'm new to JavaScript and I'm taking a class for it the assignment in it I'm supposed to create edit a pre-made page to display a marquee that automatically scrolls for the user, as well as give...
6
by: JB | last post by:
Hi All, I have a Windows Form application that shows a "please wait" form while I query a database for various information. I display my form using Show, then run my DB query, then Close the...
5
by: 000baaa000 | last post by:
The following HTML marquee code works better in Microsoft Internet Explorer, breaks (in more than one way) in Mozzila Firefox <pre>------------------------------------------------- start HTML...
3
by: Rajneesh Chellapilla | last post by:
Hi I made this marquee program however, I am having trouble getting all four marquees to line up correctly. Basically I want the the 4 marquees to line up on the four sides exactly so they intersect....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.