onmouseover query database show in new window

Posted on 2007-10-09
Last Modified: 2012-06-27
HI All,

I am using ASP.Net, C#, and a little javacript (I'm a beginner).

Can anyone provide me with a link or code that can open a new window when you mouseover a button or lable on your aspx page.

For example, if you look at the website you can mouseover a movie and a new window pops up giving details about the movie.
I want to be able to add that type of functinality to my page.  

Question by:joan2006
    LVL 3

    Accepted Solution

    LVL 20

    Assisted Solution

    <script language="javascript">
    function OpenWindow(id)
          var w ="NewPage.aspx?id="+id);
          return false;
          <asp:Label runat="server" id="lbl1" onmouseover="javascript:return OpenWindow('1');"></asp:Label>

    Author Comment


    this is very similar to what i need, but can i query a database and return records when i use this "supernote"

    because i need to have the ability to do this.

    Thank you.

    Author Comment

    I think this should have been done in AJAX.  Any suggestions out there from AJAX users?
    LVL 20

    Expert Comment

    In case you are using .net 2.0 then u could use client callback.

    Expert Comment

    How can I open the window using the Id contained in a '<%# Eval("ID") %>' variable ?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Hire Top Freelancers to Complete C# Projects

    Source the talented Expert Exchange community
    for top quality work on your C# projects.

    Hire the best. Collaborate easily. Get quality work.

    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now