如何在masterpage上使用usercontrol [英] How to use usercontrol on masterpage

查看:60
本文介绍了如何在masterpage上使用usercontrol的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在母版页中注册了一个usercontrol。 usercontrol有gridview控件。

i想要在用户将mouser悬停在div上时显示该usercontrol。

I have a usercontrol registered in master page. usercontrol has gridview control.
i want to show that usercontrol when user hover mouser over a div.

推荐答案

你想使用jQuery,所以这是一个示例,向您展示如何在鼠标悬停时更改div元素。如果您想在鼠标悬停时明确指定新的html元素,请使用:



You want to use jQuery, so here's an example showing you how to alter div elements on mouseover. If you want to explicitly specify new html elements on mouseover, use:

document.getElementById("yourDiv").innerHTML = "<HTML>your new stuff here</HTML>";





顺便说一句,我用Google搜索了这个答案,答案出现在列表的顶部。在这里提出问题之前,先习惯使用Google。



- Pete



By the way, I Googled this and the answer came up at the top of the list. Get used to using Google first, before asking a question here.

- Pete


这篇关于如何在masterpage上使用usercontrol的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆