Hi all,
How to Updated the Marquee Text in asp.net.
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
Suraj SahooRank #382 · 6.6K reputationPosted Jul 7, 2015, 4:21 AM EDT
Narasimha Reddy ChennupalliRank #1,163 · 1.6K reputationPosted Jul 7, 2015, 6:44 PM EDT
If you want to update the marquee text dynamically, put one label and give text as 'Hi'. Now we can update the label text as 'Hellooooo' from page load. you can try like below
In .aspx
In .aspx.cs
Void Page_Load()
{
lbl.Text="Hellooooo";
}
Venkata SubbareddyRank #2,083 · 691 reputationPosted Jul 7, 2015, 7:56 PM EDT
Narasimha Reddy ChennupalliRank #1,163 · 1.6K reputationPosted Jul 7, 2015, 8:14 PM EDT
Void page_load()
{
lbl.Text=GetTextFromDb();
}
Private string GetTextFromDb()
{
// write your code to get the text from Db
return str;
}