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);
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
.