简体   繁体   中英

translating line of code from C# to IronPython

我需要将这行代码从asp.net c#页面转换为asp.net IronPython,情况如何?

((IPostBackEventHandler)Button1).RaisePostBackEvent(null);

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 spelled None .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM