鼠标点击事件的asp.net面板控件 [英] mouse click event of asp.net panel control

查看:125
本文介绍了鼠标点击事件的asp.net面板控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个页面,其中包含一些面板,每个面板包含一个图像和一个带有图像描述的标签。我试图在用户点击面板的任何部分时显示模态弹出窗口。在模态弹出窗口中,将显示一些其他细节,但图像将在那里。图像将从数据库中获取。我需要从面板中获取图像ID并需要将其提供给模态弹出面板。但问题是面板不包含服务器端点击事件。我不想在点击面板上回复整个页面。有什么建议吗?在此先感谢。

Hi,
I have a page which contains some panels,each panel contains a image and a label with the description of the image. I am trying to display a modal popup when user clicks on any part of the panel. In the modal popup some other details will be displayed but the image will be there.Images will be taken from database.I need to fetch the image id from the panel and need to supply it to the modal popup panel. But the problem is panel does not contain a server side click event. I don''t want to post back the entire page on click on the panel. Any suggestion ? Thanks in advance.

推荐答案

没有服务器端点击事件。客户端上有一个点击事件,可以创建回发。



AJAX的最佳答案总是使用jquery,并避免使用MS AJAX库。 MS库总是会进行完整的回发,即使它不清楚它是什么。
There are no server side click events. There''s a click event on the client which creates a postback.

The best answer for AJAX is always to use jquery, and avoid the MS AJAX library. The MS library always does a full postback, even if it''s not clear to you that it does.


这篇关于鼠标点击事件的asp.net面板控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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