{"id":41,"date":"2015-05-26T14:59:00","date_gmt":"2015-05-26T13:59:00","guid":{"rendered":"https:\/\/debuggersspace.com\/index.php\/2015\/05\/26\/what-is-ispostback\/"},"modified":"2015-05-26T14:59:00","modified_gmt":"2015-05-26T13:59:00","slug":"what-is-ispostback","status":"publish","type":"post","link":"https:\/\/debuggersspace.com\/index.php\/2015\/05\/26\/what-is-ispostback\/","title":{"rendered":"What is IsPostBack?"},"content":{"rendered":"<div class='booster-block booster-read-block'>\n                <div class=\"twp-read-time\">\n                \t<i class=\"booster-icon twp-clock\"><\/i> <span>Read Time:<\/span>1 Minute, 5 Second                <\/div>\n\n            <\/div><div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">\n<p>    <span style=\"font-family: Arial,Helvetica,sans-serif;\"><span style=\"font-size: x-small;\"><br \/>\n<\/span><\/span><\/div>\n<div align=\"justify\">\n<span style=\"font-size: x-small;\"><span style=\"color: blue;\"><b>  IsPostBack<\/b><\/span>  <\/span><\/div>\n<p><span style=\"font-size: x-small;\"><\/p>\n<div align=\"justify\">\n   Postback is actually sending all the information<br \/>\nfrom client to web server, then web server process all those contents<br \/>\nand returns back to the client. Most of the time ASP control will cause a<br \/>\n post back (e. g. buttonclick) but some don&#8217;t unless you tell them to do<br \/>\n In certain events ( Listbox Index Changed,RadioButton Checked etc..) in<br \/>\n an ASP.NET page upon which a PostBack might be needed.<\/div>\n<p><center><br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"How to ispostback in asp.net\" height=\"307\" src=\"http:\/\/net-informations.com\/faq\/asp\/img\/ispostback.png\" width=\"577\" \/><\/center><\/p>\n<div align=\"justify\">\n   IsPostBack is a property of the Asp.Net page that<br \/>\ntells whether or not the page is on its initial load or if a user has<br \/>\nperform a button on your web page that has caused the page to post back<br \/>\nto itself. The value of the Page.IsPostBack property will be set to true<br \/>\n when the page is executing after a postback, and false otherwise. We<br \/>\ncan check the value of this property based on the value and we can<br \/>\npopulate the controls on the page.<\/div>\n<div align=\"justify\">\n   Is Postback is normally used on page _load event<br \/>\nto detect if the web page is getting generated due to postback requested<br \/>\n by a control on the page or if the page is getting loaded for the first<br \/>\n time.<\/div>\n<div align=\"justify\">\n<\/div>\n<p><\/span><\/p>\n<div align=\"justify\">\n<span style=\"font-family: Arial,Helvetica,sans-serif;\"><span style=\"font-size: x-small;\">C# Source Code<\/span><\/span><\/div>\n<div style=\"text-align: left;\">\n<\/div>\n<div style=\"background: none repeat scroll 0% 0% rgb(255, 255, 255); border: 1px dashed rgb(59, 89, 152); color: blue; height: auto; overflow-x: auto; padding-left: 10px; text-align: left; width: 570px;\">\n<p><span style=\"font-family: Arial,Helvetica,sans-serif;\"><span style=\"font-size: x-small;\"><br \/>\nprotected void Page_Load(object sender, EventArgs e)<br \/>\n{<br \/>\n    if (!IsPostBack)<br \/>\n    {<br \/>\n        \/\/ generate form;<br \/>\n    }<br \/>\n    else<br \/>\n    {<br \/>\n        \/\/process submitted data;<br \/>\n    }<br \/>\n}<br \/>\n<\/span><\/span>\n<\/div>\n<div style=\"text-align: left;\">\n<span style=\"font-family: Arial,Helvetica,sans-serif;\"><span style=\"font-size: x-small;\"><\/span><\/span><\/div>\n<div align=\"justify\">\n<span style=\"font-size: x-small;\"> <\/span><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>IsPostBack Postback is actually sending all the information from client to web server, then web server process all those contents and returns back to the client. Most of the time ASP control will cause a post back (e. g. buttonclick) but some don&#8217;t unless you tell them to do In certain events ( Listbox Index [&hellip;]<\/p>\n","protected":false},"author":43,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[23,33],"tags":[],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-asp-net","category-tcs"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Himanshu Namdeo","author_link":"https:\/\/debuggersspace.com\/author\/admin\/"},"uagb_comment_info":0,"uagb_excerpt":"IsPostBack Postback is actually sending all the information from client to web server, then web server process all those contents and returns back to the client. Most of the time ASP control will cause a post back (e. g. buttonclick) but some don&#8217;t unless you tell them to do In certain events ( Listbox Index&hellip;","_links":{"self":[{"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/posts\/41"}],"collection":[{"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/users\/43"}],"replies":[{"embeddable":true,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":0,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"wp:attachment":[{"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}