Page_Load or Page_Init

前端 未结 4 409
后悔当初
后悔当初 2021-02-04 10:44

Let\'s take a really simple example on using jQuery to ajaxify our page...

$.load(\"getOrders.aspx\", {limit: 25}, function(data) {
    // info          


        
4条回答
  •  有刺的猬
    2021-02-04 11:42

    You can very well use the Page Init method. But if you have controls in your page and want to access any property of those controls then better to use the Page load event, but in your case you don't need to use page load event.

    You can go through the Asp.Net Page Life cycle here to better understand which event to use.

提交回复
热议问题