|
|
 |
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8  | This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

July 30th, 2009, 01:13 PM
|
|
Registered User
|
|
Join Date: Jul 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Chapter 11
Can someone explain to me why the Fan profile page loses the theme set on the profile when hitting the 'Save' button? If I set my profile to WroxBlue, I get the blue theme on all my pages, except after hitting the 'Save' button, and the Server.Transfer call is executed. Moving to a different page immediately shows the blue theme again. Thanks.
|

July 30th, 2009, 06:15 PM
|
 |
Wrox Author
Points: 33,554, Level: 80 |
|
|
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 10,228
Thanks: 7
Thanked 203 Times in 201 Posts
|
|
Hi there,
I don't have the book so I don't know about the actual implementation, but it could be by design. A Click handler of a button fires quite late in the page's life cycle. A theme on the other hand needs to be set very early in the process. So, if you collect the theme during a postback, you're too late to set it for the current request.
I dealt with the same problem in my book Beginning ASP.NET 3.5 in C# and VB.NET by forcing a redirect to the same page after the theme was stored. This causes a new request which allows you to apply the theme in the early staages of the page life cycle.
Hope this helps,
Imar
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Chapter-11 |
Carlw |
BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 |
0 |
October 16th, 2008 03:08 PM |
| Chapter 11 |
Moorish |
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 |
11 |
June 4th, 2008 05:57 PM |
| chapter 11 figure 11-7 relative positioning |
pelopito |
BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 |
2 |
November 29th, 2007 06:11 AM |
| Chapter 11 Why not try 1. |
brewert |
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 |
1 |
June 28th, 2004 12:02 PM |
| Chapter 11 |
kappa3 |
Wrox Book Feedback |
0 |
October 8th, 2003 12:21 PM |
|
 |