using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

 

using System.Collections;

 

namespace AJAX

{

    public partial class AJAX_Quotes : System.Web.UI.Page

    {

 

        ArrayList quotelist = new ArrayList();

 

        protected void Page_Load(object sender, EventArgs e)

        {

            quotelist.Add("If luck shuts the door, you gotta come in through the window. --Doyle Brunson");

            quotelist.Add("Be the change you wish to see in the world. --Ghandi");

            quotelist.Add("Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. --Albert Einstein");

            quotelist.Add("An optimist may see a light where there is none, but why must the pessimist always run to blow it out? --Rene Descartes");

            quotelist.Add("Each problem that I solved became a rule, which served afterwards to solve other problems. --Rene Descartes");

            quotelist.Add("I never met a person I didn't like, but for you, I will make an exception. --Christopher M. Pascucci");

            quotelist.Add("A girl phoned me the other day and said... Come on over, there's nobody home. I went over. Nobody was home. --Rodney Dangerfield");

            quotelist.Add("A word to the wise ain't necessary - it's the stupid ones that need the advice. --Bill Cosby");

 

        Random rand = new Random();

        int num = rand.Next(0, 8);

 

        Response.Write(quotelist[num].ToString());

        }

    }

}