在按钮单击事件中获取对Ajax Control的引用 [英] Get reference to Ajax Control in button click event

查看:55
本文介绍了在按钮单击事件中获取对Ajax Control的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在实现一个自定义的支持Ajax的服务器控件。

此时我需要帮助找到Ajax框架问题的答案......在这里:


我有一个服务器控件,它从Panel扩展并实现了IScriptControl接口:

I''m in the middle of implementing a custom Ajax enabled Server Control.
At this point I need help finding the answer to an Ajax Framework question...here it goes:

I have a Server Control that extends from a Panel and implements the IScriptControl interface:

展开 | < span class =codeLinkonclick =selectAll(this);>选择 | 换行 | 行号

推荐答案

尝试以下闭包:

try the following closure:

展开 | 选择 | Wrap | 行号


这不起作用。


什么是我?你的意思是这个?

什么是参数?

apply()方法有什么作用?你从哪里得到这个想法?
This doesn''t work.

What''s "me"? Did you mean "this"?
What''s arguments?
What does the apply() method do? Where did you get this idea from?


好的我解决了这个问题。


我希望Ajax框架上有更好的文档。因为没有好的资源就把拼凑在一起很困难但是反正...


显然如果你想引用与处理方法中的按钮相关联的JavaScript对象按钮单击事件您已创建委托并将其作为参数传递给
Ok I solved the problem.

I wish there was better documentation out there on the Ajax Framework...because piecing things together is difficult without a good resource but anyways...

Apparently if you want to reference the JavaScript Object that is associated with the button in the method that handles the button click event you have create a delegate and pass that as the parameter to the


这篇关于在按钮单击事件中获取对Ajax Control的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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