problem in displaying marquee text in master page from database

Posted by Rama127 under ASP.NET on 11/28/2011 | Points: 10 | Views : 2607 | Status : [Member] | Replies : 3
My project contains master page.... In my master page i want to marquee a text from database(only one column)




Responses

Posted by: Arefin on: 11/29/2011 [Member] Starter | Points: 25

Up
0
Down
Hi Rama127,

You can use the following code in your MasterPage:

<MARQUEE WIDTH=100% BEHAVIOR=ALTERNATE BGColor=yellow><%= your server side variable that holds data from your database%></MARQUEE>


I think, it will be helpful for you.

Thanks,
Arefin

Rama127, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rama127 on: 11/29/2011 [Member] Starter | Points: 25

Up
0
Down
How can i get server side variables from database

Rama127, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Arefin on: 11/29/2011 [Member] Starter | Points: 25

Up
0
Down
Very easy. For example, You have got a value from Database in MasterPage.master.cs file. Say

string db_value = "I am from Database";

Then just call this variable db_value from MasterPage.master with <%= db_variable %>

Just try :)

Thanks,
Arefin

Rama127, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response