{"id":3203,"date":"2014-01-23T17:39:59","date_gmt":"2014-01-23T08:39:59","guid":{"rendered":"http:\/\/auctionpro.co.kr\/?p=3203"},"modified":"2021-06-25T10:12:36","modified_gmt":"2021-06-25T01:12:36","slug":"page_load-%ed%95%9c%eb%b2%88%eb%a7%8c-%ec%8b%a4%ed%96%89","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=3203","title":{"rendered":"Page_Load \ud55c\ubc88\ub9cc \uc2e4\ud589"},"content":{"rendered":"<p>AutoEventWireup=&#8221;true&#8221; \uc2dc<br \/>\nWhen the page posts back, the Page_Load method is called. Then, once the server actually processes the page and sends you a new one based on changes, the Page_Load is called again, actually the first time on the new page sent to you.<\/p>\n<p>So if you are pulling data in the Page_Load event or setting some values, enclose it in the following block:<\/p>\n<pre class=\"lang:c# decode:true \">protected void Page_Load(object sender, EventArgs e)\r\n{\r\n    if (!IsPostBack)\r\n    {\r\n        if (Session[\"something\"] == null)\r\n        {\r\n            Session[\"something\"] = \"1\";\r\n        }\r\n        else\r\n        {\r\n            Session[\"something\"] = null;\r\n\r\n            \/\/your page load code here \r\n\r\n        }               \r\n    }\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>\ucc38\uc870 \u00a0:\u00a0<a href=\"http:\/\/stackoverflow.com\/questions\/1094954\/asp-net-page-load-being-called-multiple-times\" target=\"_blank\" rel=\"noopener\">http:\/\/stackoverflow.com\/questions\/1094954\/asp-net-page-load-being-called-multiple-times<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>AutoEventWireup=&#8221;true&#8221; \uc2dc When the page posts back, the Page_Load method is called. Then, once the server actually processes the page and sends you a new <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=3203\" title=\"Page_Load \ud55c\ubc88\ub9cc \uc2e4\ud589\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[131],"tags":[],"class_list":["post-3203","post","type-post","status-publish","format-standard","hentry","category-debaps-net"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/3203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3203"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/3203\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}