<PowerShell:Runspace ID="runspace" runat="server">
    <OnInit>
        $Response.Write("OnInit<br />")
    </OnInit>
    <OnLoad>
        $Response.Write("OnLoad<br />")
    </OnLoad>
    <OnLoad Source="~/ExternalPowerShellScript.ps1" />
    <OnRender>
        "OnRender<br />"
    </OnRender>
    <OnUnload>
        $Response.Write("OnUnload<br />")
    </OnUnload>
</PowerShell:Runspace>


<PowerShell:DataSource ID="EmployeesDataSource" runat="server">
  <Script>
    [PSObject]"" | Add-Member NoteProperty "Title" "Software Engineer" -passThru | Add-Member NoteProperty "Name" "Mike Wolford" -passThru
    [PSObject]"" | Add-Member NoteProperty "Title" "Software Evangelist" -passThru | Add-Member NoteProperty "Name" "Scott Root" -passThru
    [PSObject]"" | Add-Member NoteProperty "Title" "Glaser Beam" -passThru | Add-Member NoteProperty "Name" "Justin Glaser" -passThru
    [PSObject]"" | Add-Member NoteProperty "Title" "T.I.E. Guru" -passThru | Add-Member NoteProperty "Name" "Casey Sanford" -passThru
  </Script>
</PowerShell:DataSource>

Last edited Feb 5, 2010 at 1:48 PM by adweigert, version 7

Comments

parkstech Oct 2, 2013 at 1:21 AM 
This code is not usable and not documented. All testing of this code produced errors across all frameworks. Please remove from this site.