ASP.NET Podcast Show #121 - Phil Haack with an ASP.NET MVC Demo - Video - More Wally - Wallace B. McClure
in

MoreWally.com

Giving people what they want, More Wally. This is the technical and personal blog site of
Wallace B. (Wally) McClure.

This Blog

Syndication

Technical Sites

More Wally - Wallace B. McClure

This blog will have all kinds of posts about Wally McClure. In it, there will be tons of .NET and computer programming posts as well as Wally's views on life in general. As you might guess, this site and blog help you get More Wally in your life. What more could anyone want? .NET, ADO.NET, ASP.NET, AJAX, Atlas, Microsoft AJAX Library, ASP.NET AJAX, and now Windows Azure............follow me on twitter at Wally

ASP.NET Podcast Show #121 - Phil Haack with an ASP.NET MVC Demo - Video

 

Subscribe to Everything.

Subscribe to WMV format.

Subscribe to M4V for iPod Users.

Subscribe to MP3 (Audio only).

Download WMV.

Download M4V for iPod Users.

Download MP3 (Audio Only).

Original Url: http://aspnetpodcast.com/CS11/blogs/asp.net_podcast/archive/2008/07/29/asp-net-podcast-show-121-phil-haack-with-an-asp-net-mvc-demo-video.aspx

Show Notes:

Source Code:

<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="MvcApplication2.Views.Home.Index" %>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2><%= Html.Encode(ViewData["Message"]) %></h2>
    <p>
        To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>.
    </p>
        Region 1: <span id="region1"></span>
        <hr />
        Region 2:<span id="region2"></span>
        <p>
            <input type="button" onclick="DoSomething()" value="Click Me" />
        </p>
       
        <script type="text/javascript">
            function DoSomething() {
                $.getJSON("/Home/GetJson", null, function(data) {
                    $("#region1").text(data.Message1);
                    flash('#region1');
                    $("#region2").text(data.Message2);
                    flash('#region2');
                });
            }

            function flash(selector) {
                $(selector)
                    .css('opacity', 0)
                    .animate({ backgroundColor: 'khaki', opacity: 1.0 }, 800)
                    .animate({ backgroundColor: '#ffffff' }, 350, function() {
                    this.style.removeAttribute('filter');
                });
            }
        </script>
       

</asp:Content>

Comments

No Comments
2006 - Wallace B. McClure
Powered by Community Server (Non-Commercial Edition), by Telligent Systems