Marquee from database

Discussion in 'ASP .Net' started by =?Utf-8?B?QWxp?=, Apr 6, 2005.

  1. 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>
     
    =?Utf-8?B?QWxp?=, Apr 6, 2005
    #1
    1. Advertising

  2. =?Utf-8?B?QWxp?=

    James Steele Guest

    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=asp.net session state&meta=
     
    James Steele, Apr 6, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. et

    Marquee with a dataset?

    et, Oct 17, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,257
    Mark Rae
    Oct 17, 2004
  2. =?Utf-8?B?RGFuaWVs?=

    how to use marquee in asp.net?

    =?Utf-8?B?RGFuaWVs?=, Oct 4, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    29,523
    Mark Rae
    Oct 6, 2005
  3. =?Utf-8?B?TWFyZWsgRw==?=

    MARQUEE

    =?Utf-8?B?TWFyZWsgRw==?=, Feb 20, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    822
    Mark Rae
    Feb 20, 2006
  4. UJ

    Transparent items marquee?

    UJ, Apr 25, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    1,144
  5. Adrienne

    Re: Marquee, .gif, or...

    Adrienne, Aug 6, 2003, in forum: HTML
    Replies:
    0
    Views:
    557
    Adrienne
    Aug 6, 2003
Loading...

Share This Page