Random musings...  I have had too much sugar today and too little sleep last night, so my brain is a little fried.  Consider yourself warned :)

  • My current gig is for a hospital.  Every evening when I leave the parking lot, the automated toll machine remarks "thank you and please come again".  Is that really the best farewell they could come up with?  Who wants to be in a hospital to begin with?
  • A fortune cookie from lunch read "Your happy heart brings joy and peace where there is none".  Those bastards must have been peeking at my job description.  Ah, consultant humor ;)
  • TechBargains.com rocks - I picked up a pair of 250GB HDs for 70$ each. :)
  • While configuring the new drives (for RAID 1), the Dell administration tool 'spontaneously' decided to format my boot partition.  Dell sucks,  there goes my weekend  :(

And not to be totally off-topic, an Infopath development tip... Using a web page to spawn an Infopath form is a simple yet powerful solution for integrating Infopath into your existing web systems. For example: 

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

 

    Dim RequestNum As String = Request("ID")

    Dim FormXml as String =  myBizObject.GetInfopathXML(RequestNum)

    Response.ContentType = "application/ms-infopath.xml"

    Response.Write(FormXml)

     

End Sub  

Notice the "secret ingredient" - Since IE ignores the form PI which ties it to Infopath (presumably for security reasons), if the ContentType is not set correctly then the xml data will be displayed in the browser. Setting the ContentType to "application/ms-infopath.xml" ensures that IE will spawn Infopath.