Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<b></b><pre lang="c#"></pre></pre>
Posted

The marquee control is an IE control.
You can consider using the JQuery ticker now[^].
 
Share this answer
 
v2
Comments
Espen Harlinn 6-Feb-12 8:47am    
Good point - 5'ed!
Abhinav S 6-Feb-12 10:35am    
Thank you Espen.
You should try something like this

<asp:label id="Label1" runat="server" text="<marquee>Scrolling text</marquee>" xmlns:asp="#unknown"></asp:label>


Thanks!!
 
Share this answer
 
Take a label or literal control and set it Text as

C#
label1.Text="<marquee>your Marquee Text Goes Here</marquee>";
 
Share this answer
 
you can also write it in source page or put the text in any of the literal control like
label

HTML
<marquee>your Marquee Text Goes Here</marquee>
 
Share this answer
 
Marquee tag has limitations.as
-Not a standard one.
-It's an annoying one.
-Very limited styles

See this article
HTML Marquee & its alternatives[^]
So try alternatives of Marquee
 
Share this answer
 
C#
if (mode == "LR")
          {
              if (this.Width == xPos)
              {
                  this.label47.Location = new System.Drawing.Point(0, YPos);
                  xPos = 0;
              }
              else
              {
                  this.label47.Location = new System.Drawing.Point(xPos, YPos);
                  xPos += 6;
              }
              if (xPos == 686)
              {
                  mode = "RL";
              }
          }
          else if (mode == "RL")
          {
              if (xPos == 0)
              {

                  this.label47.Location = new System.Drawing.Point(this.Width, YPos);
                  xPos = this.Width;
              }
              else
              {
                  this.label47.Location = new System.Drawing.Point(xPos, YPos);
                  xPos -= 6;

              }
              if (xPos == -4)
              {
                  mode = "LR";
              }
          }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900