On home page i want to use some section using marquee tag for scrolling link from databas
how i do this plz send me example
thank's in Advance
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
ShankeyRank #972 · 2.1K reputationPosted Sep 6, 2010, 3:19 AM EDT
Following is your code: but dont forget to mark my answer as accepted :)
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
String yourDbvalue = "Maninder";
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "setMarqueeText", "setMarqueeText('"+ yourDbvalue +"');", true);
}
}
your aspx code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
ShankeyRank #972 · 2.1K reputationPosted Sep 6, 2010, 2:32 AM EDT
You can pass that db value to javascript and by getelement by id you can change the text of the marque.
Please reply if want the code.
Imran Pervez34 reputationPosted Sep 6, 2010, 2:43 AM EDT
THANKS FOR REPLY IF U CAN SEND ME CODE IT WILL BE HELPFULE FOR ME
PLZ SEND IT ON [email protected]