无法访问受保护的成员...没有 python 子类
bt_volver 是一个 System.Web.UI.webcontrols.button,它只是一个在 2.0 中可以正常工作的代码
IronPython 2.6.911.0 in ASP.NET webforms
Visual Studio 2008 Professional 9.0.30729.1 SP
cannot access protected member
bt_volver without a python subclass of
abmlocalidades_aspx
Error de código fuente:
Línea 7: else: bt_volver.Visible = 0
bt_volver is a System.Web.UI.webcontrols.button and it's just a code it used to work fine in 2.0
IronPython 2.6.911.0 in ASP.NET webforms
Visual Studio 2008 Professional 9.0.30729.1 SP
cannot access protected member
bt_volver without a python subclass of
abmlocalidades_aspx
Error de código fuente:
Línea 7: else: bt_volver.Visible = 0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是已知的更改 - 您应该使用反射来访问受保护的成员和私有成员。
或者您可以尝试
ipy.exe -X:PrivateBinding
开关。This is known change - you should use reflection to access protected and private members.
Or you can try
ipy.exe -X:PrivateBinding
switch.