Before we continue a few things.
a) I don't have the book, don't know your site, don't know your code so I don't know what you want to do / build / design whatever.
b) I am not allowed to use my mind reading skills here. All I know is what you tell me.
So, if you want me to help you, you have to help me help you. Be specific, explain what you want, tell me what your page looks like or post releavnt code and so on.
That said, back to the problem at hand. As I explained earlier, a theme is applied early in the page's life cycle. That means you can't do it directly in a postback; you'll need to go through the early stages of the page life cycle again, which you can do by a Redirect.
Now, it's easy to redirect in the SelectedIndexChanged event of the DropDownList. Simply move the code that you have in the Button handler to a new method (like private void Save()) and then call Save both from the click handler and from the SelectedIndexChanged handler.
Not sure if that's really what you want though; it means an interrupt in the user's workflow. They are half way done filling in the other settings, choose a new heme and bam, the page reloads.....
Imar
|