related to marquee & gridview

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
Posts: 34
Reputation: manoj_582033 is an unknown quantity at this point 
Solved Threads: 0
manoj_582033 manoj_582033 is offline Offline
Light Poster

related to marquee & gridview

 
0
  #1
Jan 5th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 176
Reputation: Kusno is an unknown quantity at this point 
Solved Threads: 13
Kusno's Avatar
Kusno Kusno is offline Offline
Junior Poster

Re: related to marquee & gridview

 
0
  #2
Jan 5th, 2009
Hi manoj_582033,
I hope I can help you.
To stop and run marquee from server side, try this :

  1. Protected Sub cmdStop_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdStop.Click
  2. M.Attributes.Add("scrolldelay", 0)
  3. M.Attributes.Add("scrollamount", 0)
  4. End Sub
  5.  
  6. Protected Sub cmdRun_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdRun.Click
  7. M.Attributes.Add("scrolldelay", 100)
  8. M.Attributes.Add("scrollamount", 10)
  9. 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" runat="server" direction="left"  scrolldelay=100 scrollamount=10 >hello</marquee>
    </div>
    </form>

Thanks.
NEVER NEVER NEVER GIVE UP
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC