ASP.NET Podcast - #24 I think? Atlas here there and everywhere, Wally on books...

Well thats what I get for being slack, Wally has slipped in another podcast just after I posted up about the last one.

 

What big scoop can I bring you thats a little different though, well about all I can offer is that it is in fact podcast #24, not #23. Yes, earth shattering I know. Take a moment to absorb it before moving on.... so without further ado, the podcast....

 

Subscribe, its the good thing to do. iTunes and iPodder links.

 

Download.

 

Special thanks go out to Wilco Bauwer who has posted a lot of his insight into Atlas in the ASP.NET forums.

 

Show Notes:

  • Emails.
    • Our hero Phil Winstanley supports the show
      And thanks go out to Plip for these pictures:
      Super Wally
    • Scott Fletcher says that “Wally is the hottest thing in Podcasting!”
    • Chris Frazier agrees with Scott.
  • Atlas.
    • What are some of the Atlas pieces-n-parts.  Wally bloggerizes from Nikhil Kothari’s weblog. (Note: Wally made up the word bloggerize.  It means to steal from someone else's blog without their permission.  You learn something new on a podcast every day.........).
    • Example (Note: There is an sState, which refers to an HTML tag, and there is a property referred to as State.  These are separate and I appologize for any confusion):

Client Side Code:
        function LoadTest(){

            Samples.AspNet.WebServiceTest.ReturnDataSet(ReturnDataTableCallBack);

        }

       

        function ReturnDataTableCallBack(result)

        {

            var i = 0;

            var ddl = document.getElementById("sState");

            var optionItem;

            iLength = document.getElementById("sState").options.length;

            document.getElementById("sState").visible = true;

            //document.getElementById("txtAreaResult").value = result.get_data();

            for(i=0; i<iLength; i++)

            {

                document.getElementById("sState").options[0] = null;

            }

            alert("Length: " + result.get_length() );

            for(i=0; i<result.get_length(); i++)

            {

                var optAdd = new Option(result.getItem(i).getProperty("State"),result.getItem(i).getProperty("tblStateId"));

                for(m in result.getItem(i)){

                    //alert(m);

                }

                document.getElementById("sState").options.add(optAdd);

            }

            debug.dump(result, "DataTable Result", true);

        }
Server Side Code:
        [WebMethod]

        public System.Data.DataTable ReturnDataSet()

        {

            DataTable dt = new DataTable();

            DataRow dr;

            dt.Columns.Add(new DataColumn("tblStateId", System.Type.GetType("System.Int32")));

            dt.Columns.Add(new DataColumn("State", System.Type.GetType("System.String")));

            dr = dt.NewRow();

            dr["tblStateId"] = 1;

            dr["State"] = "Tennessee";

            dt.Rows.Add(dr);

            dr = dt.NewRow();

            dr["tblStateId"] = 2;

            dr["State"] = "Alabama";

            dt.Rows.Add(dr);

            return (dt);

        }

  • Debugging with Atlas.
    • debug.dump(object, name [, recursive[, indention padding]]);The output from debug.dump.>
    • for(m in results) alert(m);
  • Wally does pimp himself.
  • Book Status.
    • ADO.NET.
    • Ajax/Atlas Book.
    • Please come be the IIS7 lead author.  Being a lead author is so much fun.

No Comments