使用site.master页面编译时,控件事件名称会更改 [英] Control Event name changes when compiled with a site.master page

查看:48
本文介绍了使用site.master页面编译时,控件事件名称会更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个由site.master包装的内容页面。  我可以对事件处理程序进行编码,但是当页面编译时,它会更改ASP中处理程序的名称,并且事件不会触发。  我已经阅读了有关命名容器的文章,我得到了,
但我仍然不确定在Visual Basic中如何处理它。  如果我使用编译的名称为事件预先命名,则不会编译。  

I have a content page wrapped by a site.master.  I can code the event handler, but when the page compiles, it changes the name of the handler in ASP and the event doesn't fire.  I have read the articles about the Naming Containers and I get that, but am still unsure what to do about it in Visual Basic.  If I pre-name to event with the compiled name, it doesn't compile.  

推荐答案

ASP.NET论坛中讨论了ASP.NET问题。

ASP.NET issues are discussed in the ASP.NET forum.

http:// forums.asp.net /

http://forums.asp.net/


这篇关于使用site.master页面编译时,控件事件名称会更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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