BlackBerry Development Fundamentals

What people have said about the book:

I have been thinking a lot about what you said about the book not being a "learning Java" book and I think (for me at least) that will be perfect. The Java part, aside from the nuances, is pretty much like C#, etc.... Throw in the RIM API and it's not a huge deal to learn. However, learning it completely and properly obviously will take some time. The stuff you mention, MDS etc..., will be the very topics I will need for sure come time for the release of your book.

Rich Friedel
Home Inside the Book Sample Code Chapter 8 - Header Dump Application (C#)
Chapter 8 - Header Dump Application (C#) PDF Print E-mail

The code sample shown below is a Microsoft C# version of the Domino Header Dump sample application. The following code is executed in the onLoad event for a .NET web page and will display the contents of the web request's HTTP Headers:

using System;
using System.Collections.Specialized;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class _Default : System.Web.UI.Page 
{
 protected void Page_Load(object sender, EventArgs e)
 {
 NameValueCollection headers = Request.Headers;
 Response.Write("<h1>HTTP Request Headers</h1><hr />");
 foreach (string key in headers)
 {
 Response.Write("<b>" + key + "</b><br />" + headers[key] + "<br /><br />");
 }      
 }
}

 

Attachments:
Download this file (Header Dump.zip)Header Dump.zip5 Kb20/10/09 21:17
 
InformIT (Pearson Education)