<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Done Means Working</title>
        <link>http://geekswithblogs.net/mkoerner/Default.aspx</link>
        <description>My Daily Development Encounters </description>
        <language>en-US</language>
        <copyright>Mike Koerner</copyright>
        <managingEditor>michaelskoerner@hotmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <image>
            <title>Done Means Working</title>
            <url>http://geekswithblogs.net/images/RSS2Image.gif</url>
            <link>http://geekswithblogs.net/mkoerner/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>VB multiline string as XML Literals</title>
            <link>http://geekswithblogs.net/mkoerner/archive/2012/08/22/vb-multiline-string-as-xml-literals.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/mkoerner/archive/2012/08/22/vb-multiline-string-as-xml-literals.aspx'&gt;http://geekswithblogs.net/mkoerner/archive/2012/08/22/vb-multiline-string-as-xml-literals.aspx&lt;/a&gt;&lt;/p&gt;Probably known by most programmers, but I want to document it so I can find it myself later.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;An easy way to create a multiline VB string is to create a xml literal and use the value&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Dim myTest = &amp;lt;string&amp;gt;Here is a multi&lt;/div&gt;&lt;div&gt;line string that I want to use in&lt;/div&gt;&lt;div&gt;some other code.  It&lt;/div&gt;&lt;div&gt;helps the readability and&lt;/div&gt;&lt;div&gt;cut and paste functionality.&lt;/div&gt;&lt;div&gt;Even if this is a poor example&lt;/div&gt;&lt;div&gt;&amp;lt;/string&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Dim strInside as string = myTest.value&lt;/div&gt; &lt;img src="http://geekswithblogs.net/mkoerner/aggbug/150511.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Koerner</dc:creator>
            <guid>http://geekswithblogs.net/mkoerner/archive/2012/08/22/vb-multiline-string-as-xml-literals.aspx</guid>
            <pubDate>Wed, 22 Aug 2012 17:11:12 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/mkoerner/comments/150511.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/mkoerner/archive/2012/08/22/vb-multiline-string-as-xml-literals.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/mkoerner/comments/commentRss/150511.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/mkoerner/services/trackbacks/150511.aspx</trackback:ping>
        </item>
        <item>
            <title>SearchServer2008Express Search Webservice</title>
            <link>http://geekswithblogs.net/mkoerner/archive/2012/07/06/searchserver2008express-search-webservice.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/mkoerner/archive/2012/07/06/searchserver2008express-search-webservice.aspx'&gt;http://geekswithblogs.net/mkoerner/archive/2012/07/06/searchserver2008express-search-webservice.aspx&lt;/a&gt;&lt;/p&gt;I was working on calling the Search Server 2008 Express search webservice from Powershell.  I kept getting&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt; &amp;lt;ResponsePacket xmlns="urn:Microsoft.Search.Response"&amp;gt;&amp;lt;Response domain=""&amp;gt;&amp;lt;Status&amp;gt;ERROR_NO_RESPONSE&amp;lt;/Status&amp;gt;&amp;lt;DebugErrorMessage&amp;gt;The search request was unable to connect to the Search Service.&amp;lt;/DebugErrorMessage&amp;gt;&amp;lt;/Response&amp;gt;&amp;lt;/ResponsePacket&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I checked the user authorization, the webservice search status, even the WSDL.  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Turns out the URL for the SearchServer2008 search webservice was incorrect.  I was calling &lt;/div&gt;&lt;div&gt;&lt;div&gt;$URI= "http://ss2008/_vti_bin/spsearch.asmx?WSDL"&lt;/div&gt;&lt;div&gt;and it should have been&lt;/div&gt;&lt;div&gt;$URI= "http://ss2008/_vti_bin/search.asmx?WSDL"&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is my sample powershell script:&lt;/div&gt;&lt;div&gt;&lt;div&gt;# WSS Documentation http://msdn.microsoft.com/en-us/library/bb862916.aspx&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$error.clear()&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#Bad SearchServer2008Express Search URL &lt;/div&gt;&lt;div&gt;$URI= "http://ss2008/_vti_bin/spsearch.asmx?WSDL"&lt;/div&gt;&lt;div&gt;#Good SearchServer2008Express Search URL &lt;/div&gt;&lt;div&gt;$URI= "http://ss2008/_vti_bin/search.asmx?WSDL"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$search = New-WebServiceProxy -uri $URI -namespace WSS -class Search -UseDefaultCredential &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$queryXml = "&amp;lt;QueryPacket xmlns='urn:Microsoft.Search.Query' Revision='1000'&amp;gt;&lt;/div&gt;&lt;div&gt;  &amp;lt;Query &amp;gt;&lt;/div&gt;&lt;div&gt;    &amp;lt;SupportedFormats&amp;gt;&lt;/div&gt;&lt;div&gt;      &amp;lt;Format revision='1'&amp;gt;urn:Microsoft.Search.Response.Document.Document&amp;lt;/Format&amp;gt;&lt;/div&gt;&lt;div&gt;    &amp;lt;/SupportedFormats&amp;gt;&lt;/div&gt;&lt;div&gt;    &amp;lt;Context&amp;gt;&lt;/div&gt;&lt;div&gt;      &amp;lt;QueryText language='en-US' type='MSSQLFT'&amp;gt;SELECT Title, Path, Description, Write, Rank, Size FROM Scope() WHERE CONTAINS('Microsoft')&amp;lt;/QueryText&amp;gt;&lt;/div&gt;&lt;div&gt;      &amp;lt;!--&amp;lt;QueryText language='en-US' type='TEXT'&amp;gt;Microsoft&amp;lt;/QueryText&amp;gt; --&amp;gt;&lt;/div&gt;&lt;div&gt;    &amp;lt;/Context&amp;gt;&lt;/div&gt;&lt;div&gt;  &amp;lt;/Query&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/QueryPacket&amp;gt;"&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;$statusResponse = $search.Status()&lt;/div&gt;&lt;div&gt;write-host '$statusResponse:'  $statusResponse&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;$GetPortalSearchInfo = $search.GetPortalSearchInfo()&lt;/div&gt;&lt;div&gt;write-host '$GetPortalSearchInfo:'  $GetPortalSearchInfo&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;$queryResult = $search.Query($queryXml)&lt;/div&gt;&lt;div&gt;write-host '$queryResult:'  $queryResult&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;/div&gt; &lt;img src="http://geekswithblogs.net/mkoerner/aggbug/150164.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Koerner</dc:creator>
            <guid>http://geekswithblogs.net/mkoerner/archive/2012/07/06/searchserver2008express-search-webservice.aspx</guid>
            <pubDate>Fri, 06 Jul 2012 16:44:56 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/mkoerner/comments/150164.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/mkoerner/archive/2012/07/06/searchserver2008express-search-webservice.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/mkoerner/comments/commentRss/150164.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/mkoerner/services/trackbacks/150164.aspx</trackback:ping>
        </item>
        <item>
            <title>Runnin Framework 4.0 with Powershell </title>
            <link>http://geekswithblogs.net/mkoerner/archive/2012/05/31/runnin-framework-4.0-with-powershell.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/mkoerner/archive/2012/05/31/runnin-framework-4.0-with-powershell.aspx'&gt;http://geekswithblogs.net/mkoerner/archive/2012/05/31/runnin-framework-4.0-with-powershell.aspx&lt;/a&gt;&lt;/p&gt;I had problems running scripts with Framework 4.0 assemblies I created.  The error I was getting was &lt;div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Add-Type : Could not load file or assembly 'file:///C:\myDLL.dll' or one of its depend&lt;/div&gt;&lt;div&gt;encies. This assembly is built by a runtime newer than the currently loaded run&lt;/div&gt;&lt;div&gt;time and cannot be loaded.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;/div&gt;&lt;div&gt;I had to add the supported framework to the powershell.exe.config file.&lt;/div&gt;&lt;div&gt;&amp;lt;supportedRuntime version="v4.0.30319"/&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I still had a problem running the assembly so I had to recompile and set "Generate serialization Assembly" to off.&lt;/div&gt; &lt;img src="http://geekswithblogs.net/mkoerner/aggbug/149784.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Koerner</dc:creator>
            <guid>http://geekswithblogs.net/mkoerner/archive/2012/05/31/runnin-framework-4.0-with-powershell.aspx</guid>
            <pubDate>Thu, 31 May 2012 21:23:17 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/mkoerner/comments/149784.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/mkoerner/archive/2012/05/31/runnin-framework-4.0-with-powershell.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/mkoerner/comments/commentRss/149784.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/mkoerner/services/trackbacks/149784.aspx</trackback:ping>
        </item>
        <item>
            <title>set jqueryUI ThemeRoller cookie</title>
            <category>jquery</category>
            <link>http://geekswithblogs.net/mkoerner/archive/2012/01/27/set-jqueryui-themeroller-cookie.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/mkoerner/archive/2012/01/27/set-jqueryui-themeroller-cookie.aspx'&gt;http://geekswithblogs.net/mkoerner/archive/2012/01/27/set-jqueryui-themeroller-cookie.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Seems to me that all users prefer a different color scheme for the web apps they work on.  With jQueryUI, the themes are available and can be chosen with the themeswitcher gadget.  Howerver, out of the box the chosen them only lasts as long as the session.  I wanted to change it to last longer.  There are some examples on the web of modifying the jqueryUI code, but I found a simpler fix. Change the jqueryUI cookie expire date&lt;/p&gt;
&lt;p&gt;  &amp;lt;script&amp;gt;&lt;br /&gt; &lt;br /&gt;  $(document).ready(function(){&lt;br /&gt;    &lt;br /&gt;    $('#switcher').themeswitcher( &lt;br /&gt;    {&lt;br /&gt;    onSelect: function(){&lt;br /&gt;     $.cookie('jquery-ui-theme',$.cookie('jquery-ui-theme'),{ expires: 7 });&lt;br /&gt;     }&lt;br /&gt;    });&lt;br /&gt;    &lt;br /&gt;    alert("Current Theme:" + $.cookie('jquery-ui-theme'));&lt;br /&gt;  });&lt;br /&gt;  &amp;lt;/script&amp;gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/mkoerner/aggbug/148504.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Koerner</dc:creator>
            <guid>http://geekswithblogs.net/mkoerner/archive/2012/01/27/set-jqueryui-themeroller-cookie.aspx</guid>
            <pubDate>Fri, 27 Jan 2012 15:36:44 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/mkoerner/comments/148504.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/mkoerner/archive/2012/01/27/set-jqueryui-themeroller-cookie.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/mkoerner/comments/commentRss/148504.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/mkoerner/services/trackbacks/148504.aspx</trackback:ping>
        </item>
        <item>
            <title>jqGrid inline afterSave event</title>
            <link>http://geekswithblogs.net/mkoerner/archive/2012/01/25/jqgrid-inline-aftersave-event.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/mkoerner/archive/2012/01/25/jqgrid-inline-aftersave-event.aspx'&gt;http://geekswithblogs.net/mkoerner/archive/2012/01/25/jqgrid-inline-aftersave-event.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;A quick note on the inline afterSave event in jqgrid 4.3.1&lt;/p&gt;
&lt;p&gt;I was trying to refresh the grid after adding a row using the inlineNav add row button.  I couldn't fire the afterSave method to refresh the grid.  Turns out that onSuccess has to be true before afterSave is fired.&lt;/p&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;
&lt;p&gt;{ name: &lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2" face="Consolas"&gt;&lt;font color="#800000" size="2" face="Consolas"&gt;&lt;font color="#800000" size="2" face="Consolas"&gt;'EditOptions'&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;, index: &lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2" face="Consolas"&gt;&lt;font color="#800000" size="2" face="Consolas"&gt;&lt;font color="#800000" size="2" face="Consolas"&gt;'EditOptions'&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;, hidden: &lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;false&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;, width: 80 
&lt;p&gt;,formatoptions: { keys: &lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;false&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;, editbutton: &lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;true&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;, delbutton: &lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;true&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;, onSuccess: &lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;true&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;,afterSave:&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;function&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;(rowid){alert(&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2" face="Consolas"&gt;&lt;font color="#800000" size="2" face="Consolas"&gt;&lt;font color="#800000" size="2" face="Consolas"&gt;'afterSave'&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;); subgrid.trigger(&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2" face="Consolas"&gt;&lt;font color="#800000" size="2" face="Consolas"&gt;&lt;font color="#800000" size="2" face="Consolas"&gt;"reloadGrid"&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;); } }
&lt;p&gt;, formatter: &lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2" face="Consolas"&gt;&lt;font color="#800000" size="2" face="Consolas"&gt;&lt;font color="#800000" size="2" face="Consolas"&gt;'actions'&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;, search: &lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;false&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;},&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;Good Luck&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/mkoerner/aggbug/148484.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Koerner</dc:creator>
            <guid>http://geekswithblogs.net/mkoerner/archive/2012/01/25/jqgrid-inline-aftersave-event.aspx</guid>
            <pubDate>Wed, 25 Jan 2012 17:05:16 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/mkoerner/comments/148484.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/mkoerner/archive/2012/01/25/jqgrid-inline-aftersave-event.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/mkoerner/comments/commentRss/148484.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/mkoerner/services/trackbacks/148484.aspx</trackback:ping>
        </item>
        <item>
            <title>Powershell Emailing Strings as attachments</title>
            <link>http://geekswithblogs.net/mkoerner/archive/2012/01/19/powershell-emailing-strings-as-attachments.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/mkoerner/archive/2012/01/19/powershell-emailing-strings-as-attachments.aspx'&gt;http://geekswithblogs.net/mkoerner/archive/2012/01/19/powershell-emailing-strings-as-attachments.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I was working on a project to send a html attachment in a powershell script.  I have the HTML string so all I want to do is create an attachment from the string.  Here's the code:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;$SMTPserver = "mail.company.com"&lt;br /&gt;$from = "from&lt;a href="mailto:from@company.com"&gt;@company.com&lt;/a&gt;"&lt;br /&gt;$to = "to&lt;a href="mailto:to@company.com"&gt;@company.com&lt;/a&gt;"&lt;br /&gt;$subject = "Test PS Attachment"&lt;br /&gt;$emailbody = "test"&lt;br /&gt;$attText = "The text of the attachment"&lt;br /&gt;$attName = "Test.txt"&lt;/p&gt;
&lt;p&gt; &lt;br /&gt;$mailer = new-object Net.Mail.SMTPclient($SMTPserver)&lt;br /&gt;$msg = new-object Net.Mail.MailMessage($from, $to, $subject, $emailbody)&lt;br /&gt; &lt;br /&gt;$att = [System.Net.Mail.Attachment]::CreateAttachmentFromString($attText,$attName) &lt;br /&gt; &lt;br /&gt; $msg.Attachments.Add($att)&lt;/p&gt;
&lt;p&gt;$msg.IsBodyHTML = $false&lt;br /&gt;$mailer.send($msg) &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;That should get you started.&lt;/p&gt; &lt;img src="http://geekswithblogs.net/mkoerner/aggbug/148429.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Koerner</dc:creator>
            <guid>http://geekswithblogs.net/mkoerner/archive/2012/01/19/powershell-emailing-strings-as-attachments.aspx</guid>
            <pubDate>Thu, 19 Jan 2012 21:39:32 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/mkoerner/comments/148429.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/mkoerner/archive/2012/01/19/powershell-emailing-strings-as-attachments.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/mkoerner/comments/commentRss/148429.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/mkoerner/services/trackbacks/148429.aspx</trackback:ping>
        </item>
        <item>
            <title>BizTalk 2010  SMTP mailer</title>
            <link>http://geekswithblogs.net/mkoerner/archive/2011/12/14/biztalk-2010--smtp-mailer.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/mkoerner/archive/2011/12/14/biztalk-2010--smtp-mailer.aspx'&gt;http://geekswithblogs.net/mkoerner/archive/2011/12/14/biztalk-2010--smtp-mailer.aspx&lt;/a&gt;&lt;/p&gt;
		&lt;p&gt;I checked the SMTP headers on an email sent from the Biztalk 2010 SMTP send port.&lt;/p&gt;
		&lt;p&gt;X-Mailer: Microsoft CDO for Windows 2000&lt;/p&gt;
		&lt;p&gt;Really?  CDO Really? &lt;/p&gt;
 &lt;img src="http://geekswithblogs.net/mkoerner/aggbug/148046.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Koerner</dc:creator>
            <guid>http://geekswithblogs.net/mkoerner/archive/2011/12/14/biztalk-2010--smtp-mailer.aspx</guid>
            <pubDate>Wed, 14 Dec 2011 23:07:42 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/mkoerner/comments/148046.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/mkoerner/archive/2011/12/14/biztalk-2010--smtp-mailer.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/mkoerner/comments/commentRss/148046.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/mkoerner/services/trackbacks/148046.aspx</trackback:ping>
        </item>
        <item>
            <title>IIS 7 URL Rewriting</title>
            <link>http://geekswithblogs.net/mkoerner/archive/2011/07/22/iis-7-url-rewriting.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/mkoerner/archive/2011/07/22/iis-7-url-rewriting.aspx'&gt;http://geekswithblogs.net/mkoerner/archive/2011/07/22/iis-7-url-rewriting.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I was working on a MVC3 project using jQuery to populate a text input in an iframe element from the parent.&lt;/p&gt;
&lt;p&gt;The catch is that the iframe source is on a different domain.&lt;/p&gt;
&lt;p&gt;When I first tried to do it, the javascript gave me the Permission Denied error for trying to access the iframe document in a different domain.&lt;/p&gt;
&lt;p&gt;If the domain of the parent and iframe child are the same this Permission Denied error will not be encountered.  To get the iframe domain the same as the parent I needed to use a proxy to fetch the page from the remote site, change the domain and display it in the iframe.  Also the interactions in the iframe need to go back to the remote site.&lt;/p&gt;
&lt;p&gt;To get this to work I downloaded the IIS URL Rewrite Module &lt;a href="http://www.iis.net/download/URLRewrite"&gt;http://www.iis.net/download/URLRewrite&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I had to create some rewriting rules to do the proxy.  This blog post &lt;br /&gt;
&lt;a href="http://blogs.iis.net/carlosag/archive/2010/04/01/setting-up-a-reverse-proxy-using-iis-url-rewrite-and-arr.aspx"&gt;http://blogs.iis.net/carlosag/archive/2010/04/01/setting-up-a-reverse-proxy-using-iis-url-rewrite-and-arr.aspx&lt;/a&gt;&lt;br /&gt;
has a good description of how to create the rules.&lt;/p&gt; &lt;img src="http://geekswithblogs.net/mkoerner/aggbug/146297.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Koerner</dc:creator>
            <guid>http://geekswithblogs.net/mkoerner/archive/2011/07/22/iis-7-url-rewriting.aspx</guid>
            <pubDate>Fri, 22 Jul 2011 21:47:46 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/mkoerner/comments/146297.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/mkoerner/archive/2011/07/22/iis-7-url-rewriting.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/mkoerner/comments/commentRss/146297.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/mkoerner/services/trackbacks/146297.aspx</trackback:ping>
        </item>
        <item>
            <title>jqGrid Row Edit Buttons</title>
            <link>http://geekswithblogs.net/mkoerner/archive/2011/06/03/jqgrid-row-edit-buttons.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/mkoerner/archive/2011/06/03/jqgrid-row-edit-buttons.aspx'&gt;http://geekswithblogs.net/mkoerner/archive/2011/06/03/jqgrid-row-edit-buttons.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I've been working with the jqgrid and have been really impressed with the ease of use.  One issue I was having was with the action buttons on the row.  If a new row is selected, the action buttons wouldn't toggle back.  I had to toggle them myself in the onSelectRow function.&lt;/p&gt;
&lt;p&gt;Here is a sample jqgrid based on the jqgrid samples &lt;a href="http://www.trirand.com/blog/jqgrid/jqgrid.html"&gt;http://www.trirand.com/blog/jqgrid/jqgrid.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;html xmlns="&lt;a href="http://www.w3.org/1999/xhtml"&gt;http://www.w3.org/1999/xhtml&lt;/a&gt;"&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;link href="/Content/Site.css" rel="stylesheet" type="text/css" /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
        &amp;lt;link href="/Content/jquery-ui-1.8.7.css" rel="stylesheet" type="text/css" /&amp;gt;&lt;br /&gt;
    &amp;lt;link href="/Content/ui.jqgrid.css" rel="stylesheet" type="text/css" /&amp;gt;&lt;br /&gt;
    &amp;lt;link href="/Content/ui.multiselect.css" rel="stylesheet" type="text/css" /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;script src="/Scripts/jquery-1.6.1.min.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;script src="/Scripts/modernizr-1.7.min.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;    &amp;lt;script src="/Scripts/grid.locale-en.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script src="/Scripts/jquery.jqGrid.min.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;
    jQuery(document).ready(function () {&lt;/p&gt;
&lt;p&gt;var lastsel2&lt;br /&gt;
jQuery("#rowed5").jqGrid({&lt;br /&gt;
 datatype: "local",&lt;br /&gt;
 height: 250,&lt;br /&gt;
    colNames:['ID Number','Name', 'Stock', 'Ship via','Notes','Edit'],&lt;br /&gt;
    colModel:[&lt;br /&gt;
     {name:'id',index:'id', width:90, sorttype:"int", editable: true},&lt;br /&gt;
     {name:'name',index:'name', width:150,editable: true,editoptions:{size:"20",maxlength:"30"}},&lt;br /&gt;
     {name:'stock',index:'stock', width:60, editable: true,edittype:"checkbox",editoptions: {value:"Yes:No"}},&lt;br /&gt;
     {name:'ship',index:'ship', width:90, editable: true,edittype:"select",editoptions:{value:"FE:FedEx;IN:InTime;TN:TNT;AR:ARAMEX"}},&lt;br /&gt;
     { name: 'note', index: 'note', width: 200, sortable: false, editable: true, edittype: "textarea", editoptions: { rows: "2", cols: "10"} },&lt;br /&gt;
       { name: '', index: '', width: 80, formatoptions: { keys: false, editbutton: true, delbutton: true }, formatter: 'actions' } &lt;br /&gt;
    ],&lt;br /&gt;
 onSelectRow: function(id){&lt;br /&gt;
  if(id &amp;amp;&amp;amp; id!==lastsel2){&lt;br /&gt;
      jQuery('#rowed5').jqGrid('restoreRow', lastsel2);&lt;/p&gt;
&lt;p&gt;      $("tr#" + lastsel2 + " div.ui-inline-edit, " + "tr#" + lastsel2 + " div.ui-inline-del", "#rowed5").show();&lt;br /&gt;
      $("tr#" + lastsel2 + " div.ui-inline-save, " + "tr#" + lastsel2 + " div.ui-inline-cancel", "#rowed5").hide();&lt;br /&gt;
  // Let the action buttons set the edit row&lt;br /&gt;
  // jQuery('#rowed5').jqGrid('editRow',id,true);&lt;br /&gt;
   lastsel2=id;&lt;br /&gt;
  }&lt;br /&gt;
 },&lt;br /&gt;
 editurl: "server.php",&lt;br /&gt;
 caption: "Input Types"&lt;/p&gt;
&lt;p&gt;});&lt;br /&gt;
var mydata2 = [&lt;br /&gt;
  {id:"12345",name:"Desktop Computer",note:"note",stock:"Yes",ship:"FedEx"},&lt;br /&gt;
  {id:"23456",name:"Laptop",note:"Long text ",stock:"Yes",ship:"InTime"},&lt;br /&gt;
  {id:"34567",name:"LCD Monitor",note:"note3",stock:"Yes",ship:"TNT"},&lt;br /&gt;
  {id:"45678",name:"Speakers",note:"note",stock:"No",ship:"ARAMEX"},&lt;br /&gt;
  {id:"56789",name:"Laser Printer",note:"note2",stock:"Yes",ship:"FedEx"},&lt;br /&gt;
  {id:"67890",name:"Play Station",note:"note3",stock:"No", ship:"FedEx"},&lt;br /&gt;
  {id:"76543",name:"Mobile Telephone",note:"note",stock:"Yes",ship:"ARAMEX"},&lt;br /&gt;
  {id:"87654",name:"Server",note:"note2",stock:"Yes",ship:"TNT"},&lt;br /&gt;
  {id:"98765",name:"Matrix Printer",note:"note3",stock:"No", ship:"FedEx"}&lt;br /&gt;
  ];&lt;br /&gt;
for(var i=0;i &amp;lt; mydata2.length;i++)&lt;br /&gt;
 jQuery("#rowed5").jqGrid('addRowData',mydata2[i].id,mydata2[i]);&lt;/p&gt;
&lt;p&gt; });&lt;br /&gt;
 &amp;lt;/script&amp;gt;&lt;br /&gt;
 &amp;lt;table id="rowed5"&amp;gt;&amp;lt;/table&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &lt;/p&gt; &lt;img src="http://geekswithblogs.net/mkoerner/aggbug/145702.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Koerner</dc:creator>
            <guid>http://geekswithblogs.net/mkoerner/archive/2011/06/03/jqgrid-row-edit-buttons.aspx</guid>
            <pubDate>Fri, 03 Jun 2011 18:22:35 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/mkoerner/comments/145702.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/mkoerner/archive/2011/06/03/jqgrid-row-edit-buttons.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/mkoerner/comments/commentRss/145702.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/mkoerner/services/trackbacks/145702.aspx</trackback:ping>
        </item>
        <item>
            <title>MVC3 JSON Error</title>
            <link>http://geekswithblogs.net/mkoerner/archive/2011/05/24/mvc3-json-error.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/mkoerner/archive/2011/05/24/mvc3-json-error.aspx'&gt;http://geekswithblogs.net/mkoerner/archive/2011/05/24/mvc3-json-error.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I was working on a MVC3 project with jqGrid using JSON.  The data was created using EF4 Code First.  Took me a while to hook up the grid and actually having it post back to the server to retrieve the JSON.  I was having issues with my int ID column not formatting to JSON. &lt;/p&gt;
&lt;p&gt;LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression.&lt;/p&gt;
&lt;p&gt;StackOverflow had some responses to use&lt;/p&gt;
&lt;p&gt;SqlFunctions.StringConvert((double)products.ProductID)&lt;/p&gt;
&lt;p&gt;Then I received a different error&lt;/p&gt;
&lt;p&gt;The specified method 'System.String StringConvert(System.Nullable`1[System.Double])' on the type 'System.Data.Objects.SqlClient.SqlFunctions' cannot be translated into a LINQ to Entities store expression.&lt;/p&gt;
&lt;p&gt;What I ended up doing is creating a list of the products and then looping through them&lt;/p&gt;
&lt;p&gt;var products = from product in db.Products&lt;br /&gt;
               select product;&lt;br /&gt;
               &lt;br /&gt;
var prodList = products.ToList();&lt;br /&gt;
 &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt; &lt;img src="http://geekswithblogs.net/mkoerner/aggbug/145525.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Koerner</dc:creator>
            <guid>http://geekswithblogs.net/mkoerner/archive/2011/05/24/mvc3-json-error.aspx</guid>
            <pubDate>Wed, 25 May 2011 01:24:19 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/mkoerner/comments/145525.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/mkoerner/archive/2011/05/24/mvc3-json-error.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/mkoerner/comments/commentRss/145525.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/mkoerner/services/trackbacks/145525.aspx</trackback:ping>
        </item>
    </channel>
</rss>