This is a migrated thread and some comments may be shown as answers.

[Solved] ContentPlaceHolder Lambda (VB.NET)

0 Answers 15 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Lee
Top achievements
Rank 1
Lee asked on 01 Jun 2012, 09:05 AM
Hi, I started to build a splitter based master page which works great when it passes a string into the Pane.Content builder method. But I cant see how to implement the following in order to render a ContentPlaceHolder within the pane.

So my question is really just about general VB.NET lambda usage, how to I go about converting the following C#  code to VB.NET...
panes.Add()
               .Content(() =>
               {%>
                   <asp:ContentPlaceHolder ID="MainContent" runat="server" />                      
               <%})

I have tried various things such as...
panes.Add()
               .Content(Function (o)
               %>
                   <asp:ContentPlaceHolder ID="MainContent" runat="server" />                     
               <%)

But now I am a bit stuck.

Any help would be appreciated.
Thanks,
Tags
General Discussions
Asked by
Lee
Top achievements
Rank 1
Share this question
or