Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #21 (permalink)  
Old January 20th, 2009, 01:37 PM
Imar's Avatar
Wrox Author
Points: 71,366, Level: 100
Points: 71,366, Level: 100 Points: 71,366, Level: 100 Points: 71,366, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,979
Thanks: 79
Thanked 1,564 Times in 1,541 Posts
Default

I understood that and hence the question:

>> What would you like to happen and when?

Simply when the user stares at the screen? ;-)

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #22 (permalink)  
Old January 20th, 2009, 01:40 PM
Authorized User
 
Join Date: Dec 2008
Location: , , Greece.
Posts: 56
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to fh84
Default

no, when the user picks a value from the drop down menu!
  #23 (permalink)  
Old January 20th, 2009, 01:49 PM
Imar's Avatar
Wrox Author
Points: 71,366, Level: 100
Points: 71,366, Level: 100 Points: 71,366, Level: 100 Points: 71,366, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,979
Thanks: 79
Thanked 1,564 Times in 1,541 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 11 - Problem Opening Database dbcook8 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 15 February 2nd, 2009 08:41 AM
Problem with chapter 11 example luis.filipe BOOK: Expert SQL Server 2005 Integration Services ISBN: 978-0-470-13411-5 1 January 5th, 2008 05:29 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
problem with chapter 11 example... shepholland BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 October 10th, 2004 11:12 AM



All times are GMT -4. The time now is 11:11 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.