inline-xml

Inserting Variable into Inline XML in VS2008

so i have some inline XML Dim x As XElement = _ <parent> <child></child> </parent> what I want to do is get some variables that have been set into that xml Dim v as string = "Blah" Dim x As XElement = _ <parent> <child>{v}</child> </parent> Is this possible? I...

How to include dynamic markup in inline XML without it being encoded

I would like to create a HtmlHelper function for a specific kind of dropdown that appears on many pages in my app. I'm basically just trying to add some decoration around the existing DropDownList function, but it's being encoded. Here's my extension method: <Extension()> _ Public Function Year(ByVal HtmlHelper As System.Web.Mvc...