本文介绍了使用jQuery后,onClick事件在asp.net中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在一个项目中,我需要显示带有后退颜色作为渐变的下拉列表.
输出应如下所示: http://v2.easy-designs.net/articles/replaceSelect /files/final.html
但是在使用各种jQuery插件之后,我已经成功呈现了输出,但是引起的另一个问题是我无法在后端获取事件.

当我使用jQuery文件并抛出错误时,存在回发问题.

因此,我正在寻找用于生成类似输出的插件或建议.


等待您的建议......


在此先感谢... :)
Chirag

Hello All,

I am working on aproject where i need to display a dropdown list with backhroung color as gradient.
the output should be like this: http://v2.easy-designs.net/articles/replaceSelect/files/final.html
but after using various jQuery plugin I have successfully render the output but another issue which raised is that I am not able to get the events in back end.

There is a post back issue when i used jQuery files and an error was thrown.

So, I am searching for a plugin or suggestion for generating similar output.


waiting for your suggestions......


Thanks in Advance...:)
Chirag

推荐答案

this.onclick = function() {
   selectMe(this);
}


这可以防止事件触发.您也应该尝试在onclick事件中为下拉菜单添加__doPostBack函数.

运行一些测试,让我知道!


This could prevent event to trigger. You should try to add the __doPostBack function for the dropdown inside the onclick event too.

Run some test and let me know!



这篇关于使用jQuery后,onClick事件在asp.net中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 21:23