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);
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.
加载中,请稍侯......
精彩评论