How to check page postback in Javascript – ASP.NET

To check ASP.Net Page post back from JavaScript use below code

var isPostBack = “<%Response.Write(Page.IsPostBack);%>”;

if (isPostBack === “True”) {
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s