The usercontrol is a kind of thumbnail which you can click to assign a new image.
There are other elements on the form such as textboxes, etc, so if I remove the (!IsPostBack) check then my LoadProfile function will overwrite the modified textbox values with the original data.
So, unfortunately I need the postback to validate the textboxes.
Main Topics
Browse All Topics





by: Nash2334Posted on 2008-04-04 at 10:22:59ID: 21283820
Remove the if (!IsPostBack) check.
protected void Page_Load(object sender, EventArgs e)
{
LoadProfile();
}