Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Marquee from database

Thread Tools

Marquee from database

Posts: n/a

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)
For Each dr In dt.Rows
strScroller &= "<a
href='News.aspx?Category=Announcements&ID={0}'> " &
dr.Item("Headline").ToString & "</a>" & " &nbsp;
strScroller = "<marquee id=mar1 direction=left>" & strScroller &
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"

Reply With Quote
James Steele
Posts: n/a
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..

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Database Database Database Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase Computer Information 0 09-26-2012 09:40 AM
MARQUEE =?Utf-8?B?TWFyZWsgRw==?= ASP .Net 1 02-20-2006 04:18 PM
how to use marquee in =?Utf-8?B?RGFuaWVs?= ASP .Net 3 10-06-2005 08:28 PM
Marquee with a dataset? et ASP .Net 1 10-17-2004 04:11 PM