Displaying the Slideshow Page


One thing is left on the basic preferences page. After setting and saving the preferences, you want users to be able to jump to the slideshow page itself. When you created the page, you added the Display Slideshow button, so now let s program that button to navigate to the slideshow page. In Design view, double-click the Display Slideshow button to create a skeleton handler. Then add the following boldfaced code to the handler:

Sub buttonDisplaySlideshow_Click(sender As Obj ect, e As EventArgs    Response.Redirect("Slideshow2.aspx") End Sub

This code is basically a one-line program you call the Response.Redirect method and specify the name of the page to jump to. In this case, you re going to jump to a new slideshow page called  Slideshow2.aspx, which you ll create next.




Microsoft ASP. NET Web Matrix Starter Kit
Microsoft ASP.NET Web Matrix Starter Kit (Bpg-Other)
ISBN: 0735618569
EAN: 2147483647
Year: 2003
Pages: 169
Authors: Mike Pope
BUY ON AMAZON

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net