getting values from cached usercontrol
For usercontrols that use the outputcache directive, how do you access properties on the control after it is cached? If it doesn't really exist on the page? I tried out the following code and it gave a null reference error the second time the button was clicked:
protected void Button1_Click(object sender, EventArgs e)
{
System.Diagnostics.Debug.WriteLine(WebUserControl1 .TextBox1Contents);
}
|