What is IsPostback property in asp.net and how does it work?

IsPostBack property indicates that whether this is the first time user has requested fort the page or it is reloaded based on any response on postback.

This property checks for __VIEWSTATE or __EVENTTARGET parameter in Request object. if these parameters are absent that means it is requested for the first time and if these parameters are present then this request is not first request.

Leave a Reply

Your email address will not be published. Required fields are marked *

19 − 9 =