I have a page with tabs using RadMultiPage and ascx controls for each tab. One of the tabs contains a form. My code behind for that page has logic like this to load the form with the previously submitted data only when it is not a post back because the submit button preforms a post back.
If the tabbed page is brought up with the form tab as the initial tab, the form data loads on the page and works fine.
The problem is that if the page is brought up with another tab selected as the initial tab, when the user clicks on the tab with the form, the form data is not loaded because apparently clicking on the tab preforms a post back?? How do I get around this issue?
Thanks
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!Page.IsPostBack)
{
UpdateFormWithDBData();
}
}
If the tabbed page is brought up with the form tab as the initial tab, the form data loads on the page and works fine.
The problem is that if the page is brought up with another tab selected as the initial tab, when the user clicks on the tab with the form, the form data is not loaded because apparently clicking on the tab preforms a post back?? How do I get around this issue?
Thanks