G
Guest
Hi All,
I am loading a web user control (.NET 2.0) into a placeholder on a content
page ( plus the use of a master page).
The controls is a list of companie, one you select a company for editing,
the edit button loads the "editcompany.ascx" control into the placeholder
which was just occupied by the "companylist.ascx" control.
This all works just fine, but I gues you see my problem coming.... as soon
as you click any of the buttons on the "editcompany.ascx" control the page is
reloaded and it goes back to the original list without even touching the
event of the button which triggered the postback.
I know it happens because the control is loaded on the "edit" event from the
original list, which means that the page is updated after the viewstate has
been completed.
I am now wondering if somebody has used this thechnique successfully before,
and I don't want to do redirects to another page with some data in the QS, I
want it to stay within the same page, at least for related functionallity.
Any pointers to articles or tips are greatly appreciated.
Thanks
Wouter
I am loading a web user control (.NET 2.0) into a placeholder on a content
page ( plus the use of a master page).
The controls is a list of companie, one you select a company for editing,
the edit button loads the "editcompany.ascx" control into the placeholder
which was just occupied by the "companylist.ascx" control.
This all works just fine, but I gues you see my problem coming.... as soon
as you click any of the buttons on the "editcompany.ascx" control the page is
reloaded and it goes back to the original list without even touching the
event of the button which triggered the postback.
I know it happens because the control is loaded on the "edit" event from the
original list, which means that the page is updated after the viewstate has
been completed.
I am now wondering if somebody has used this thechnique successfully before,
and I don't want to do redirects to another page with some data in the QS, I
want it to stay within the same page, at least for related functionallity.
Any pointers to articles or tips are greatly appreciated.
Thanks
Wouter