Hi Friends

I have make an application in which news will be present in marquee & User could make updation & insertion in that .so for this i am calling gridview inside of marquee & that is working properly but the problem is that when i click on edit button marquee must be stop & when i click update button marquee must be start ,i am not able to doing this because i am calling marquee from source code & the code is being on code behind apart

so how i can stop marquee or is another way to make this applicaton

Plz help me

Hi manoj_582033,
I hope I can help you.
To stop and run marquee from server side, try this :

Protected Sub cmdStop_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdStop.Click
        M.Attributes.Add("scrolldelay", 0)
        M.Attributes.Add("scrollamount", 0)
    End Sub

    Protected Sub cmdRun_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdRun.Click
        M.Attributes.Add("scrolldelay", 100)
        M.Attributes.Add("scrollamount", 10)
    End Sub

add new attribute in marquee control, runat = "server" so ASP.Net can recognize it.

<form id="form1" runat="server">
    <asp:Button ID="cmdStop" runat="server" Text="Stop" />
    <asp:Button ID="cmdRun" runat="server" Text="Run" />
    <div>
    <marquee id="M" [B]runat="server"[/B] direction="left"  scrolldelay=100 scrollamount=10 >hello</marquee>
    </div>
    </form>

Thanks.

This article has been dead for over six months. Start a new discussion instead.