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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ShankeyPosted Sep 6, 2010, 7:19 AM
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" %>
Imran PervezPosted Sep 6, 2010, 6:43 AM
THANKS FOR REPLY IF U CAN SEND ME CODE IT WILL BE HELPFULE FOR ME
PLZ SEND IT ON [email protected]
ShankeyPosted Sep 6, 2010, 6:32 AM
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.