L
Luke Ward
Hi All
I created web user control that has a few properties and an Update method.
These controls all get initialised and configured (all properties set) at
the page load event.
Today I included an if(!this.IsPostBack) {} around the initialisation code,
so that if an error occurred when the user was trying to update the
database, I could send them back with all their amended data in tact (not
the data back from database).
Now, when I try to update the page, my user controls still exist, but their
properties are no longer set!! Is there a way around this, I'm new to .Net
and may just be taking the wrong train of thought.
Any advice would be greatly appreciated.
Many Thanks
Luke
I created web user control that has a few properties and an Update method.
These controls all get initialised and configured (all properties set) at
the page load event.
Today I included an if(!this.IsPostBack) {} around the initialisation code,
so that if an error occurred when the user was trying to update the
database, I could send them back with all their amended data in tact (not
the data back from database).
Now, when I try to update the page, my user controls still exist, but their
properties are no longer set!! Is there a way around this, I'm new to .Net
and may just be taking the wrong train of thought.
Any advice would be greatly appreciated.
Many Thanks
Luke