The Wagner Blog
Development Notes, News and Trivia









Subscribe to "The Wagner Blog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
 

 

Monday, April 08, 2002
 

First Class SOHO Firewall: I'm impressed with the things I've read about Celestix Aries One. A Linux based firewall server for $649,- This thing really rocks. It includes the Enterprise grade Checkpoint firewall, a hardened Linux kernel, and even has ports for wireless PCMCIA cards


1:28:44 PM    

ASP.NET Tidbit:  I really like the Asp.NET dropdown server control. While everyone is marveling about the grid , for today I am simply impressed by the humble drop-down list control. Here is a sample of binding the list to a data reader (based on a software defect tracker that I'm working on).

Bugs.ProjectAreasDB dbprojareas = new Bugs.ProjectAreasDB(); cboAreas.DataSource=dbprojareas.GetAreasPerProject(projSelectedID); cboAreas.DataTextField="ProjectArea"; cboAreas.DataValueField="ixProjectArea";                     cboAreas.DataBind();

So provided that the call to the business object return a datareader, this snippet binds the drop down to the contents of two fields within the reader.  Notice the DataTextField and DataValueField properties. The DataTextField is what the user sees when the dropdown displays in an HTML page. you can think of the DataValueField as the equivalent of an HTML value attribute. It usually contains information that is written back to the DB. Nothing new with that concept right? But the execution in ASP.NET is nicely done. In my example the DataValueFields ends up holding the PK of the ProjectArea table. 

Now then -  what if you already have a record in the DB and you need to display the value thats alraedy in the DB as the selection of the dropdown? Lets say the DB has an ixProjectArea value of "1" . At some point when thepage loads, the code snippet above executes and fills the dropdown with all the possible choices that a user can select from  BUT how about the alraedy selected value that was already written to the DB? Here its is:

cboAreas.Items.FindByValue(result["ixProjectArea"].ToString()).Selected=true

The Items property actually obtains the collection of items that are contained in the dropdown. As you can see, this is a bit different than setting the selected value via the "SelectedItem.Value" property, which is the one most people would initially reach for. By the way, the "Items" property also has a "FindByText" method.

So for today I'm impressed with the ASP.NET dropdown control.


12:44:11 PM    

Esther Dyson explains the magic that happened between wireless bloggers and live speakers. A few days ago, Buzz Bruggeman, Dan Gillmor, Doc Searls, and others in the audience were exchanging email and blogging, while speakers were reading their posts onstage. [80211b News] [Pythoz.com]
11:12:28 AM    

How Susie Bayer's T-Shirt Ended Up on Yusuf Mama's Back: "If you've ever left a bag of clothes outside the Salvation Army or given to a local church drive, chances are that you've dressed an African. All over Africa, people are wearing what Americans once wore and no longer want." [From the Desktop of Dane Carlson]
11:08:35 AM    

'Crappy' WAP Bridging Gap. Even the inventors of wireless application protocol admit WAP is crap. But, following the example of the persistent Windows model, they're promising to get it right. By Elisa Batista. [Wired News]
11:06:58 AM    

ObjectSpaces - Do you suppose MS is getting it?

Darrow Kirkpatrick has a newsletter. It seems very readable. The most important point here is the discussion of a Microsoft library called ObjectSpaces - its what I was looking for when I first perused all the .NET examples. Perhaps MS is coming around? I would hope so, because all that "light-weight objects" crap that the multitudes of drones have been espousing is really not the way to take advantage of .NET (However, it maybe a way to string VBScript/ASP coders along under the delusion that they are indeed doing OO by following the "light weight obejcts" methodology......)

Here is an article on the subject.  I was pumped when I saw it. This is exactly what I meant with "verbose" objects. There is another one on InformIT.  Thanks to Peter Drayton for pointing these articles out.


10:56:34 AM    

Who said that web services are nowhere to be found. Sam Ruby has a cool example of Google opening their API via SOAP.
10:48:14 AM    


Click here to visit the Radio UserLand website. © Copyright 2004 Thomas Wagner.
Last update: 5/2/2004; 4:41:46 PM.
This theme is based on the SoundWaves (blue) Manila theme.
April 2002
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Mar   May