Hi, this solution is excelent. But I have a strange problem. If I use this solution in a new project it's work fine. But I Put it in my project, don't work.
After disable many features of my project, I discover a cause of problem.
Mi pages descend of MyPage class and in this class I use PageInit event for set Theme in Pages.
In this cases an PostBack occours when I select item in a TreeView. If I comment the code, this example work fine.
Code sample:
|
public Page() |
{ |
_createWindowController = false; |
//Load += new EventHandler(InternalLoad); |
Init += new EventHandler(InternalInit); |
PreInit += new EventHandler(Page_PreInit); |
} |
|
void Page_PreInit(object sender, EventArgs e) |
{ |
// Get the theme name from a QueryString variable |
String ThemeName = Request.QueryString["thename"]; |
if (ThemeName == null) |
ThemeName = "Default"; |
this.Theme = ThemeName; |
} |