Is it OK to use __doPostBack() or it is not recommended because it is generated from ASP.Net and we are not sure if they changed it in a next version of ASP.Net.
Is it OK to use __doPostBack() or it is not recommended because it is
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would advice against it, since it’s internal stuff of
ASP.NETand was never meant to be used directly.Instead, what I’m doing when I need to “manually” trigger PostBack is adding hidden “server side” button with the proper OnClick:
Then the JS is:
This way I don’t care how post back happens, I just trigger the natural flow of events.