A
Alex Maghen
I've built a few UserControls that have worked perfectly for a while. Now,
for the first time, I want to use these controls inside a Data-Bound Repeater
control.
When the page first loads, my control works perfectly. But any kind of
PostBack results in runtime errors in the control's PageLoad(), when it tries
to do
SomeProperty = ViewState["SomeProperty"].ToString()
where it says that there's a NULL Exception (I guess that this means that
the value of my ViewState["SomeProperty"] is NULL.
Perhaps you can help me understand how things change in the situation where
my control is inside a Repeater so that I can try to figure out why this is
happening?
Thanks.
Alex
for the first time, I want to use these controls inside a Data-Bound Repeater
control.
When the page first loads, my control works perfectly. But any kind of
PostBack results in runtime errors in the control's PageLoad(), when it tries
to do
SomeProperty = ViewState["SomeProperty"].ToString()
where it says that there's a NULL Exception (I guess that this means that
the value of my ViewState["SomeProperty"] is NULL.
Perhaps you can help me understand how things change in the situation where
my control is inside a Repeater so that I can try to figure out why this is
happening?
Thanks.
Alex