自定义的WebControl内LinkBut​​ton的回发问题 [英] LinkButton postback problem inside custom WebControl

查看:172
本文介绍了自定义的WebControl内LinkBut​​ton的回发问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

搜索结果
我已经放弃试图找到一个解决的办法。结果
我的页面有一个ModalPopupExtender,显示一个asp:小组与我自定义的WebControl里面的结果
我自定义的WebControl只包含一个LinkBut​​ton,是一个UpdatePanel内。



I've given up trying to find a solution to this.
My page has a ModalPopupExtender that shows an asp:Panel with my custom WebControl inside it.
My custom WebControl contains only a LinkButton and is inside an UpdatePanel.

的问题是,点击后,LinkBut​​ton的是重新加载整个页面。的搜索结果
随着常规输入按钮,这不会发生。 LinkBut​​ton的拒绝按预期方式工作并重新加载整个页面:(
结果
如果我使用单独的LinkBut​​ton在UpdatePanel(不是我自定义的WebControl里面的)一切工作正常。在

The problem is that, when clicked, the LinkButton it is reloading the entire page.

With a regular input Button, this does not happen. The LinkButton refuses to work as expected and reloads the entire page :(
If I use the LinkButton alone inside the UpdatePanel (not inside my custom WebControl) everything works fine.

我是什么做错了吗?!?结果
请,任何帮助将大大AP preciated!

What am I doing wrong?!?
Please, any help would be greatly appreciated!

在前进,结果谢谢
费利佩

Thanks in advance,
Felipe

推荐答案

答案是这里

<一个href=\"http://weblogs.asp.net/wallym/archive/2006/09/26/Programmatically-adding-triggers-to-an-UpdatePanel-_2D00_-Microsoft-AJAX-Library-and-ASP.NET-2.0-AJAX-Extensions.aspx\"相对=nofollow>请注册LinkBut​​ton的作为AsyncPostBack控制。

这篇关于自定义的WebControl内LinkBut​​ton的回发问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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