将代码行从 C# 转换为 IronPython
我需要将这行代码从 asp.net c# 页面转换为 asp.net IronPython,会怎样?
((IPostBackEventHandler)Button1).RaisePostBackEvent(null);
I need to convert this line of code from an asp.net c# page to asp.net IronPython, how would it be?
((IPostBackEventHandler)Button1).RaisePostBackEvent(null);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能是
Button1.RaisePostBackEvent(None)
。Python 作为一种动态语言,不需要指定类型,因为它没有强制转换的概念。 Python 中的
null
拼写为None
。Probably
Button1.RaisePostBackEvent(None)
.Python, being a dynamic language, doesn't need the type specified, as it has no notion of casting. And
null
in Python is spelledNone
.