or

Protected Sub Button1_Click(sender As Object, e As System.EventArgs) Handles Button1.Click Dim newPaswordSecureString As System.Security.SecureString = New System.Security.SecureString() Dim newPassword As String = "password" For Each c As Char In newPassword newPaswordSecureString.AppendChar(c) Next Dim credential As PSCredential credential = New PSCredential("userame", newPaswordSecureString) 'Set the connection Info Dim connectionInfo As WSManConnectionInfo = New WSManConnectionInfo(New Uri("http://tusdcas1.tusd.local/powershell"), "http://schemas.microsoft.com/powershell/Microsoft.Exchange", credential) Dim runspace As Runspace = System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace(connectionInfo) runspace.Open() Dim newMbx As Command newMbx = New Command("Get-MailboxStatistics") newMbx.Parameters.Add("Server", "TUSDMBSTORAGE1.tusd.local") Dim cmd As Pipeline = runspace.CreatePipeline() cmd.Commands.Add(newMbx) Dim commandResults As Collection(Of PSObject) commandResults = cmd.Invoke() For Each cmdlet As PSObject In commandResults Dim _cmdletDisplayName As String = cmdlet.Properties("DisplayName").Value.ToString() Dim _cmdletTotalItemSize As String = cmdlet.Properties("TotalItemSize").Value.ToString() Dim _cmdletLegacydn As String = cmdlet.Properties("LegacyDN").Value.ToString() Response.Write("Mailbox No.:" + _cmdletDisplayName + "," + _cmdletTotalItemSize + "," + _cmdletLegacydn) NextEnd SubTelerik.Web.UI.GridTableView.registerClass(
"Telerik.Web.UI.GridTableView",Sys.UI.Control);
Telerik.Web.UI.GridFilterFunction=
function(){};
Telerik.Web.UI.GridFilterFunction.prototype= {NoFilter:0,Contains:1,DoesNotContain:2,StartsWith:3,EndsWith:4,EqualTo:5,NotEqualTo:6,GreaterThan:7,LessThan:8,GreaterThanOrEqualTo:9,LessThanOrEqualTo:10,Between:11,NotBetween:12,IsEmpty:13,NotIsEmpty:14,IsNull:15,NotIsNull:16,Custom:17};
Telerik.Web.UI.GridFilterFunction.registerEnum(
"Telerik.Web.UI.GridFilterFunction",false);
Telerik.Web.UI.GridFilterFunction.parse=
function(b,a){return(typeof b=="number")?b:Sys$Enum$parse.call(this,b,!!a);
Sys$Enum$parse is not defined
thank you for your help.
function ShowEditForm(id, rowIndex) { var grid = window["<%= grd.ClientID %>"]; var rowControl = grid.MasterTableView.Rows[rowIndex].Control; grid.MasterTableView.SelectRow(rowControl, true); return ShowPopup("<%= GetUrl() %>" + id); }