Free Downloadable E-Book Offers from Microsoft Press MCP Flash Feb 2009
Reading the MCP Flash of February 2009 I came to the next three free e-book offers which are a great way to stay up to date on the latest Microsoft technologies.
Create a Google Talk Chatback Badge
In some situations it could be helpfull for users to chat with e.g. the site administrator. I like the way of automatically show the online/offline state of this user. You can do this using Google Talk. If you are signed in to Google Talk site users can see you online state. Without having a Google Talk account they can chat with you using the guest browser window.
Using the following link you can create a chatscript for you site. http://www.google.com/talk/service/badge/New
You can use it in your sites, even in SharePoint. But be aware that the chatwindow could be a popup, so remember to make this location trusten.
Also don't give passwords or other secret information in this chatwindow because you never know a guest is the person you think and you can't get his credentials.
Remembering the Query String
You already used it but how dit you passed that value using a Query String?
"A query string is the part of a URL that contains data to be passed to web applications (e.g. http://server/path/program?query_string=value)."
// A) Add a querystring to the entire url
String newUrl = Context.Request.Url.ToString() + "?ItemID={0}";
// B) Check or there is a Query String
if(Page.Request.QueryString.AllKeys.Length == 0)
{ // Do something }
// C) Write all keys and values from the Query String
using System.Collections;
using System.Collections.Specialized;
...
NameValueCollection collection = Request.QueryString;
String[] keyArray = collection.AllKeys;
Response.Write("Keys:");
foreach (string key in keyArray) {
Response.Write(" " + key +": ");
String[] valuesArray = collection.GetValues(key);
foreach (string myvalue in valuesArray) {
Response.Write("\""+myvalue + "\" ");
}
}
[/code]
Microsoft releases the Open Source CMS Oxite
Microsoft releases the first version of the opensource-cms Oxite. This content management system is based on ASP.NET and the Model View Controller (MVC) Framework. This CMS is primary released for blogs. Since the use of ASP.NET this software requirers windows servers (hosting). "Oxite is an open source, standards compliant, and highly extensible
content management platform that can run anything from blogs to big web
sites."
Download Oxite: http://www.codeplex.com/oxite
Learn More: http://visitmix.com/lab/oxite