0

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

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Although if you ever need to cast, you can use clr.Convert.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.