.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Marquee with "onClick" function for each marquee entry.

Posted By:      Posted Date: October 11, 2010    Points: 0   Category :ASP.Net

Hello folks,

i'm new to this forum so please don't punish me if i do somethin wrong :).

Okay what i need is a Marquee in ASP.NET C# which consits of something like buttons, hyperlinks or something like that.

The Marquee as it self is no problem at all. It Shows Data  as a String from the SQL Database seperated by a "-"

The problem is that i need for each "entry" of this marquee an onClick functionality and that each entry should hold  a guid as property.

So that if i click on one entry the onClick function fires and get's the guid property to get data from the database relating on that guid.

I hope you unterstand what i mean and can help me.

I need that for a project i'm currently on.


View Complete Post

More Related Resource Links

How to display recent blog posts in marquee up tag?


I need to display recent blog post in the blog site to the right panel.

i am able to display all the title of the posts using dataview. What i need is that it should scroll up, that is all the contents should be in the : Marquee direction="up" tag.

how can i scroll the recent post's?


asp:Button inside a SharePoint Dataview's Rows with onclick event does not call C# function. Pull i

asp:Button inside SharePoint Dataview Rows with onclick event does not call C# function. Pull it out of Dataview and works fine. I have a ASP.NET Button I've placed inside a SharePoint  DataView's rows with an onclick event pointing to C# function block inside my page. The page refreshes when I click on them, but it's not hitting that code block. If I move the button to outside the dataview and make the ID fixed, the code works beautifully. what's up with that? the button in the Dataview: td class="ms-vb" style="width: 70px"><asp:Button runat="server" Text="Delete" id="Delete{@ID}" CommandArgument="{@FileRef}" OnClick="DeleteDoc"/> </td> my C# onclick handler (inline C# on the page) void DeleteDoc(object sender, EventArgs e) { Button b = sender as Button; .. more code The buttons are rendered and they look like this: input type="submit" name="ctl00$PlaceHolderMain$g_08acadfd_957b_4112_a426_cc7c81991c1e$Delete1" value="Delete" id="ctl00_PlaceHolderMain_g_08acadfd_957b_4112_a426_cc7c81991c1e_Delete1" Thie code block in inline and I'm working from SharePoint Designer. Not sure how I can troubleshoot this.  Am I missing something here, maybe I need to add an Itemtemplate or something like we need to in the ASP.N

Marquee onFinish call asp.net method

 I have the following code that is executed on a button. Dim str As String = "get data from database" Dim text As String = "<marquee loop=""1"" scrollamount='2' scrolldelay='1' onfinish=""alert(event.srcElement.id + ' finished looping.')""> " & str & "</MARQUEE>" Literal1.Text = text What i want it to do is when the scrolling has finished to call another method, which will then load in some more text to scroll. At the moment it displays a message box. Hope you can Help, Thanks.

ProgressBar Marquee style

Hi, I've read through all the threads on this topic.  I don't understand why my progressbar doesn't do anything.  I declared: pBar1.Style = ProgressBarStyle.Marquee; on a button_Click event; but when I run it, it doesn't do anything.  It's just "blank".  Does anyone know why? I left all the defaults for the control as is on my Windows Form application. Appreciate any help.  

view SP list in a marquee



I need to pull titles from SP 2010 List or a site pages and  view them in a marquee.

How that can be down?



Marquee Listing in SharePoint?


Dear All,

I developed a intranet site with sharepoint, in home i have Announcements webpart in this i need scrolling text or moving text like morque any possibility? 





Yet another Progress Bar Question (Marquee)


Ok...I've setup a standard drag and drop progress bar form component from VS 2010 on my target form. It's style set to Marquee under the VS properties panel. 

I have the following function that runs when the form is "activated"


        public void SearchLists_Activated(object sender, EventArgs e)


            Cursor.Current = Cursors.WaitCursor;



            Thread searchThread = new Thread(new ThreadStart(getLists));



            while (searchThread.IsAlive)


                // Wait for Search to Complete

                // Need time-out function in case thread never comes back



            Cursor.Current = Cursors.Default;



Help with a Marquee



Is there a way I can have the marquee not scroll all the way to the left of the page? Like a left margin so its about an inch from the left?  Thanks!


<marquee style="font-size:12px;color:#000000;font-family:verdana;font-weight:bold;"> Test </marquee> 

Fetch data from the database and place it in a marquee

The article Fetch data from the database and place it in a marquee was added by codenickel on Saturday, October 30, 2010.

1. First we should take the marquee tag in the source of our web form(Page.aspx) page like this:->marquee direction="up" onmouseover="this.start()" onmouseout="this.stop()"scrolldelay="300? style="height: 213px">asp:Literal ID="lt1? runat="server

Marquee / Scrolling Text

Is it possible to create a marque or scrolling text in WPF. One approach I can think of is by using timers and doing it programatically. Is there any other approach?


radio button checked changed event not firing with onclick javascript function



I have used below code.

<asp:RadioButton GroupName="grpAssoc" ID="rbtEvery" runat="server" Text="Everyone"
                                                                                    onclick="return doChangeAssociationType(0);" AutoPostBack="True" oncheckedchanged="rbtEvery_CheckedChanged"

but oncheckedchanged="rbtEvery_CheckedChan

Content page control passes as argument to javascript function


Here is the content page:


<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="JavaDynamicCopyValue.aspx.cs" Inherits="JavaDynamicCopyValue" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <script type="text/javascript" >
 function copyValue(input, output )
   ouput.value = input.value;
   return true;
 <asp:TextBox ID="txt1" runat="server" onchange="copyValue(this,document.getElementById('<%=txt2.ClientID%>'))"></asp:TextBox>
    <br />
    <br />
    <asp:TextBox ID="txt2" runat="server"></asp:TextBox>


I got a javascript run time error says output is undefined. if I view source of the page, the txt1 markup became:

<input name="ctl00$ContentPlaceHol

connection to SQL Server files (*.mdf) require SQL server express 2005 to function properly.


I dont have the SQL EXPRESS installed instead I have SQL Standard Edition.

 I have two SQL Server instances installed.

 1- UserLT (this is sql 2000)
2- UserLT\SQL2005 (this is SQL 2005 named instance)

But when i try to add a database to my VS website project I get the following error:

Connection to SQL Server files (*.mdf) require SQL server express 2005 to function properly. please verify the installation of the component or download from the URL: go.microsoft.com/fwlink/?linkId=4925

I went in Tools>Opetions>DataBase tools>Data Connection>Sql Server Instance Name (blank for default)

and changed the "SQLEXPRESS" to "USERLT\SQL2005".

But I still get the same error message. Any ideas how i can resolve this issue?

Public Shared function doubt????

I am using VB.net/ASP.NET and SQL Server 2000 for a web application.

For populating the dropdowns, I wrote a Public Shared function LoadDDL(), in which I pass the dataset and dropdown name to set.

I have my doubts that this function will produce unexpected results for concurrent users. And will mix the results among sessions because it is a Shared function.

I am confused here. Is it the right way to go?

Please advice. Thanks in advance.


Trim function in C Sharp

How do i use "trim" function in C Sharp? I have a string and i want to strip off spaces from the end of the string. Any idea how do i do it??


Basic Instincts: Dynamic Data Entry With XML Literals


Learn how to use Windows Presentation Foundation (WPF), XAML, and the deep XML support in Visual Basic to generate user interfaces dynamically.

Beth Massi

MSDN Magazine October 2008

Toolbox: User-Friendly UIs, Online Data Entry Controls, and More


Microsoft® Office is one of the most well-known and most-used consumer products. For many people, their only experience with a computer is when using Office, be it checking e-mail, creating presentations, or writing a document.

Scott Mitchell

MSDN Magazine February 2006

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend