Monday, June 28, 2004

the Software Testing Spot

the Software Testing Spot

How To: Page Records in .NET Applications

How To: Page Records in .NET Applications

Visual Basic Power Pack: Home

Visual Basic Power Pack: Home

Friday, June 25, 2004

Asynchronous Callbacks in WHIDBEY

Asynchronous Callbacks

Creating Connections to Oracle Databases

Creating Connections to Oracle Databases

Oracle Data Provider for .NET (ODP.NET)

Oracle Data Provider for .NET (ODP.NET)

Blogger has C# Atom code

using System;
using System.Net;
using System.Security.Cryptography;
using System.Text;
using System.Web.Services.Protocols;
using System.Xml;

public class AtomClient {
public static void Main(string[] arg) {
if (arg.Length != 3) {
Console.WriteLine("Usage: AtomClient user password url");
return;
}

string user = arg[0];
string password = arg[1];
string url = arg[2];

// Create a blog entry
entryType blog = new entryType();
blog.issued = DateTime.Now;
blog.title = "First Post!";

// Author
blog.author = new authorType();
blog.author.name = "Sam Ruby";
blog.author.url = "http://www.intertwingly.net/blog/";

// Generator
blog.generator = new generatorType();
blog.generator.url = "http://www.intertwingly.net/blog/";
blog.generator.Value = "WSDL C# Client";

// Fill in the content
XmlDocument d = new XmlDocument();
d.InnerXml = "
Hello World!
";
blog.content = new contentType[1];
blog.content[0] = new contentType();
blog.content[0].mode = contentTypeMode.xml;
blog.content[0].type = "application/xhtml+xml";
blog.content[0].Any = new XmlNode[1];
blog.content[0].Any[0] = d.DocumentElement;

// Create an 'atom' authorization header
Security auth = new Security();
UsernameToken unt = new UsernameToken();
auth.UsernameToken = new UsernameToken();
auth.UsernameToken.Nonce = new Random().Next().ToString();
auth.UsernameToken.Username=user;
auth.UsernameToken.Created=DateTime.Now.ToString("u").Replace(' ','T');

// Fill in the password
SHA1 md = new SHA1CryptoServiceProvider();
string v = auth.UsernameToken.Nonce + auth.UsernameToken.Created + password;
byte[] digest = md.ComputeHash(Encoding.Default.GetBytes(v));
auth.UsernameToken.Password=new passwordType();
auth.UsernameToken.Password.Value=Convert.ToBase64String(digest);
auth.UsernameToken.Password.Type="wsse:PasswordDigest";
auth.UsernameToken.Password.AnyAttr=new XmlAttribute[1];
auth.UsernameToken.Password.AnyAttr[0]=d.CreateAttribute("wsse:placeholder",
"http://schemas.xmlsoap.org/ws/2002/07/secext");

try {
// Post the request
AtomAPI api = new AtomAPI();
api.SecurityValue = auth;
api.Url = url;
api.POST(ref blog);
} catch (SoapException fault) {
System.Console.WriteLine(fault.Message);
} catch (WebException httpStatus) {
System.Console.WriteLine(httpStatus.Message);
}

}
}

Only4Gurus - Some top 40 .net videos

Only4Gurus - Thousands of useful Microsoft resources

Wednesday, June 23, 2004

ASP.NET Home: Manage Detail Pages Across Multiple Platforms with Centralized Data Caching (ASP.NET Technical Articles)

ASP.NET Home: Manage Detail Pages Across Multiple Platforms with Centralized Data Caching (ASP.NET Technical Articles)

Tuesday, June 22, 2004

POP access to web e-mail and GMAIL

POP access to web e-mail

Friday, June 18, 2004

IE 6.0 - QuirksMode Homepage - CSS and JAVASCRIPT tips

IE 6.0 - QuirksMode Homepage

Coding Best Practices Using DateTime in the .NET Framework

Coding Best Practices Using DateTime in the .NET Framework

How to use XPath on a DataSet?

How to use XPath on a DataSet?Used Classes:

DataRow
DataSet
XmlDataDocument
XmlNodeList
XmlNode

XML File:




One


Three


Four


Two



Code:

DataSet ds = new DataSet();
ds.ReadXml(Server.MapPath("file.xml"));

XmlDataDocument xmlDoc = new XmlDataDocument(ds);

XmlNodeList nodeList = xmlDoc.DocumentElement.SelectNodes("/CategoryList/Category[@ID=01]");

DataRow myRow;
foreach (XmlNode myNode in nodeList)
{
myRow = xmlDoc.GetRowFromElement((XmlElement)myNode);
if (myRow != null)
Response.Write(myRow[0]);
}

Output:

One


Brain.Save() - soap.smtp:// - SMTP web service via WSE 2

Brain.Save() - soap.smtp://

Job Details - Microsoft Careers

Job Details - Microsoft Careers

Thursday, June 17, 2004

The Code Project - The User Interface Process Application Block : Part 1 - .NET

The Code Project - The User Interface Process Application Block : Part 1 - .NET

Wednesday, June 16, 2004

Microsoft Patterns and Practices Smart Client: Home

Microsoft Patterns and Practices Smart Client: Home

Calling WebServices using Javascript

Calling WebServices using Javascript

If you are using Microsoft IE 5 or later, you can use the behavior/HTML-Component "WebService" to access a Web service. The "WebService" behavior communicates with Web services over HTTP using Simple Object Access Protocol (SOAP).

To use the "WebService" behavior, you must attach it to an element using the STYLE attribute, as follows:

STYLE="behavior:url(webservice.htc)">


A complete example taken from the Microsoft Web site is as follows:








Enter a Value



style="behavior:url(webservice.htc)"
onresult="onmyresult();">




Generating Excel files from web - line breaks in cells

Generating Excel files from web - line breaks in cells

Monday, June 14, 2004

Smart Client Architecture and Design Guide

Smart Client Architecture and Design Guide

Building a Picture Frame with Windows CE 5.0 - Step 1

Building a Picture Frame with Windows CE 5.0 - Step 1

Sunday, June 13, 2004

EggHeadCafe - How To Tutorials On VB.NET, C#, ASP.NET, SQL Server, and Mobile Devices

EggHeadCafe - How To Tutorials On VB.NET, C#, ASP.NET, SQL Server, and Mobile Devices

Thursday, June 10, 2004

The Microsoft ISV Show: Collaboration SMART CLIENTS

The Microsoft ISV Show: Collaboration

How do I implement a custom Text marker?

How do I implement a custom Text marker?

Microsoft Monitor: Where's the Popcorn?

Microsoft Monitor: Where's the Popcorn?

Visual Basic: Visual Basic at the Movies

Visual Basic: Visual Basic at the Movies

ASP.NET Home: ASP.NET: Web Applications: Understanding ASP.NET View State (ASP.NET Technical Articles)

ASP.NET Home: ASP.NET: Web Applications: Understanding ASP.NET View State (ASP.NET Technical Articles)

ASP.NET Home: Serving Dynamic Content with HTTP Handlers (ASP.NET Technical Articles)

ASP.NET Home: Serving Dynamic Content with HTTP Handlers (ASP.NET Technical Articles)

ASP.NET Home: Rearchitect Your Web Applications for Microsoft ASP.NET 2.0 (ASP.NET Technical Articles)

ASP.NET Home: Rearchitect Your Web Applications for Microsoft ASP.NET 2.0 (ASP.NET Technical Articles)

Monday, June 07, 2004

Some Point to Review: Bad interviews are your best friend

Bad interviews are your best friend

HOWTO: Winforms Data Binding Lessons Learned

Winforms Data Binding Lessons Learned

Sunday, June 06, 2004

XSLT Intellisense and validation schema for VS 2003

XSLT Intellisense and validation schema for VS 2003

Microsoft weRock247.NET Developer Roadmap

Microsoft weRock247.NET Developer Roadmap

Thursday, June 03, 2004

Download details: Microsoft .NET Framework Setup.exe Bootstrapper Sample

Download details: Microsoft .NET Framework Setup.exe Bootstrapper Sample

C# Tutorials, Code Examples & Articles - Technology Tutorials, Code Examples & Tutorials: TrooBloo.com

C# Tutorials, Code Examples & Articles - Technology Tutorials, Code Examples & Tutorials: TrooBloo.com

Adding Design-Time Support to ASP.NET Controls

Welcome to the MSDN Library

Tuesday, June 01, 2004

15 Seconds : Generics In-Depth

15 Seconds : Generics In-Depth