Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > .NET Framework 1.x
|
.NET Framework 1.x For discussing versions 1.0 and 1.1 of the Microsoft .NET Framework.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 1.x section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 7th, 2007, 05:32 AM
Registered User
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Difference Between Page_init and Page_load

Hi,

I have read that Page_init is fired for the first time when the page is executed first.and after that it wont but and Page_load is fired after every postback.

but in my application both events are fired in every postback.Why?

pls.......answer

thanks


Preeti
 
Old February 7th, 2007, 10:18 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Both methods fire every time. Page_Init fires first. Page_Load is the first time viewstate is available.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Capturing Button Click in Page_Init? jlrolin ASP.NET 1.0 and 1.1 Professional 3 February 22nd, 2007 03:38 PM
page_load() hassel vijayapteET ASP.NET 1.0 and 1.1 Basics 2 October 6th, 2005 01:30 PM
What is Page_Init ?? cybercross General .NET 1 September 25th, 2004 01:03 AM
Page_Load not working! New2ASPnet General .NET 6 July 28th, 2004 01:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.