Description: Introduction
When coordinating code between a master page, a child page and several controls, it can be very useful to have a listing of when each event is fired. There are a lot of lists on the web but they are rarely complete, and I have yet to find the code on how the lists were created. In the end I wrote my own testing framework, which is the topic of this article.
It turns out to be very simple: override methods to make a note of what is happening, then continue. I did this by creating custom classes to replace the standard Page and MasterPage objects, and by writing "wrapper" web controls. If you are familiar with these techniques or are just looking for a reference, feel free to go to the Results sections at the bottom.
This article is targeted towards beginner-ish web programmers who already know the basics of web programming and have a test site where they can experiment. It was written and tested using ASP.Net 2.0, but there s nothing here that should break with any
To Search:
File list (Check if you may need any files):
Default.aspx
Test.master
web.config
App_Code\TestButton.vb
........\TestChild.vb
........\TestGrid.vb
........\TestMaster.vb
....Data\TestData.xml