The "Eureka!," "How could I be so stupid!," and "Head-to-Wall-Banging" aspects of Programming and Life, served with a side order of humor and alternate perspective.
ASP.NET MVC3
Get link
Facebook
X
Pinterest
Email
Other Apps
I want to get back into the habit of blogging.
I’m currently learning the ASP.NET MVC3 framework. I’m going to be blogging about things I have learned while using the framework.
I am working on a SQL Server Reporting Services 2008 project. I decided to write a tool in C# that will document the reports that I have created. What should make this easy is that the structure of the RDL (report) file is XML, which makes it a perfect candidate for using LINQ to XML to dig through its information. Here’s the top of the RDL file I’m trying to process (C:\MyReport.RDL): <? xml version="1.0" encoding="utf-8" ?> < Report xmlns : rd = "http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns = "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" > < DataSources > < DataSource Name = "SalesDM" > < DataSourceReference > SalesDM </ DataSourceReference > < rd : DataSourceID > 60c7781c-ab9c-4c5f-b779-24afa5d5bac3 </ rd : DataSourceID > < rd : SecurityType > None </ rd : SecurityType > </ Data...
I've been re-learning PowerShell lately. String Delimiters There are two string delimiters available for building strings in PowerShell: apostrophe (') and double quote ("): Write-Host 'Hello World' Write-Host "Hello World" Both of these PowerShell commands send the string Hello World to the console. I fell into the habit of using the apostrophe in my PowerShell scripts, and found that I missed string interpolation that I use so often in C# and PHP. Consider the following example: $name='Rick' $distanceInMiles=10 $greeting = 'Hello, my name is '+$name+' and I work '+$distanceInMiles+' miles from home.' Write-Host $greeting When this script is executed, the following is written to the console: Hello, my name is Rick and I work 10 miles from home. String Interpolation String interpolation lets you embed expressions into a string when defining the string. The expressions are evaluated when...
Sorry for the delay in blog entries - the lines for the bathroom at my house are way long. ;-) Seriously, I've been away a while, but I'm going to throw myself into blogging. I encourage you to stay tuned!
Comments