Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 595
  • Last Modified:

onmouseover query database show in new window

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 Blockbuster.com 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.  

Thanks.
0
joan2006
Asked:
joan2006
2 Solutions
 
informaniacCommented:
<html>
<head>
<script language="javascript">
function OpenWindow(id)
{
      var w = window.open("NewPage.aspx?id="+id);
      return false;
}
</script>
</head>
<body>
<form>
      <asp:Label runat="server" id="lbl1" onmouseover="javascript:return OpenWindow('1');"></asp:Label>
</form>
</body>
</html>
0
 
joan2006Author Commented:
rlbalan,

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.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
joan2006Author Commented:
I think this should have been done in AJAX.  Any suggestions out there from AJAX users?
0
 
informaniacCommented:
In case you are using .net 2.0 then u could use client callback.
http://msdn2.microsoft.com/en-us/library/ms178210(vs.80).aspx
0
 
jalvarezcaCommented:
How can I open the window using the Id contained in a '<%# Eval("ID") %>' variable ?
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now