|
| hi Angus Logan,
Thank u very much for ur code
but its not working for me.
the error is : "posting is not declared"
Dim yourPosting as Posting =
CmsHttpContext.Current.Searches.GetByPath("/Channels/SonetCms1/NewPage")
dim strContent as string =
yourPosting.Placeholders("htmlPlaceholderControl1").Html
waiting for ur help.
Thanking you angus.
ESWAr
iteswar@gmail.com (eswar) wrote in message news:<63d0c60.0411290447.59b62bb0@posting.google.com>...[vbcol=seagreen]
> hi Angus Logan,
>
> thank u very much for ur reply.
>
> iam unable to extract content using the given code from my
> placeholders.
>
> my placeholders control name is "htmlPlaceholdercontrol1"
> and my posting name is "newpage"
> which is located at "Chennals\Sonetcms1\newpage" on SiteManager.
>
> my template file name is "HomePage" which is located at
> "Templates\Sonetcms1\homepage"
>
> which is binded to a templatefile called "MainPage.aspx"
> my Templatefile consists of "htmlplaceholdercontrol1" and "default
> console" control.
>
>
> i wanna search for a page called "newpage" and extract the content
> from "newpage" and present it on my browser.
>
> iam using VB.NET.
> ========================================
=======
> Dim Content as String =
> Ctype(Cmshttpcontext.current.posting.placeholder("MyHtmlPh"),
> HtmlPlaceholder).Html
> ========================================
========
>
> the above code is pasted in my button1_click of a button control on
> ("MainPage.aspx") template file.
>
> to this aspx page i have imported
>
> Imports Microsoft.ContentManagement.Publishing.Extensions.Placeholders
> Imports Microsoft.ContentManagement.Publishing.Placeholder
> Imports Microsoft.ContentManagement.Publishing.CmsHttpContext
>
> can you please help me how to code for presenting my content on
> browser.
>
> Thanking u very much for help in advance
> eswar
>
>
>
>
>
> "Angus Logan [MVP]" <angus_logan@data3.com.au> wrote in message news:<O$zNPbI1EHA.3840@tk2msftngp13.phx.gbl>...
|
|