Skip to content
Loading
  • Khargesh Rajput
    0
    add a datalist or repeater   inside tag
    like

                        onmouseout="this.start()" direction="left"
                        style="margin-top: 0px; margin-left: 6px;" class="style41">
      
      
        
         
       " font-italic="true" font-size="11px" forecolor="#FF6666">
      
      
      

    0
  • 0
    I cannot add repeater.

    I have to use "InnerText" property of div and span...

    I have to display text values...that is it....
    0
  • Khargesh Rajput
    0
    than conconate test string on label from database and add label insidee div
    and add marque
    0
  • 0
    I cannot do that...

    If I use label, the text comes below,

    Current Design -


                   
    Announcements

                   

                   


               

    --------------
    Output
    Announcements > test 1 test 2  Happy Birthday Abc

    -----------------

    I want result as -
    String - "Announcement >" should stay as it is.
    String - "test 1 test 2" should move in marquee.
    String "Happy Birthday" should stay as it is.
    String "Abc" should move in marquee.
    ------
    How to achieve this ??
    0
  • Khargesh Rajput
    0
    you should have to use asp control for this I think,
    because you have to show dynamic data
    0
  • 0
    But when we add "id" and "runat" attributes, that becomes a server side control by itself.

    Then, we can access it in aspx.cs page also....

    If I use asp controls, then the design part is vanishing.
    0
  • Khargesh Rajput
    0
    yes you can done it on

    span_ann but you have to concante data on span_ann
    or you have to use data control to show text, as you told on label your text come below
    0
  • 0
    For string in span, I have done -

    var span_ann = new HtmlGenericControl("span_ann");
    span_ann.InnerText = "Announcements";
    -------
    span_ann is the ID of span.
    -----------
    Now,

    How to add
    test 1 test 2 in span_ann in marquee tag ??
    0
  • Khargesh Rajput
    0
    var list = new List();
        list.Add("test1");
        list.Add("test2");
        list.Add("test3");

        // Concat the list.
        string concatstr = string.Concat(list);
    span_ann.InnerText="Announcement"+concatstr;
    0
  • 0
    Hi...

    But after I add this text, how to make it scroll ??

    How to use marquee tag ??

    If I use in aspx page, I get an error - Element not supported.

    And ignoring this error, if I run the web page, the width of the
    element increases...

    How do I apply marquee to this span1.Innertext ?? Any idea ?
    0
  • Khargesh Rajput
    0
    always welcome
    0