Archive for March, 2007

How to load a different user control 

You can clear out the contents of an old control and load in a new one, as needed.
Dim oldControl As UserControl = Master.FindControl(”oldControl”)
oldControl .Controls.Clear()
Dim newControl As Control = LoadControl(”~/controls/newControl.ascx”)
oldControl.Controls.Add(newControl)

Convenient Debugging 

The For…Each loop gives you a convenient way to check on the field names and values that are submitted with a form and placed in the Request.Form Collection. You can place the following script at the top of your form page and it will report the field names and values that are transmitted to […]