Q on Creating a Drop-Down List Placeholder Control
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Q on Creating a Drop-Down List Placeholder Control

 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server
Author Message
Varad
Guest





Posted: Fri Jan 07, 2005 9:09 am    Post subject: Q on Creating a Drop-Down List Placeholder Control Reply with quote

I looked at this sample on CMS documentation. This chapter is titled Creating
a Drop-Down List Placeholder Control in the CMS Site Development Help Guide.
I'm re-writing the example in VB.net. There is this one line which I dont
understand what it means to translate to Vb.Net
[ SupportedPlaceholderDefinitionType( typeof(XmlPlaceholderDefinition) ) ]

After this line, in this function when I used 'me' instead of 'this', but I
didnt see ddlAuthoringControl in Intellisense in Visual Studio when I typed
'me.'. It means the control ddlAuthoringControl is not visible right? What am
I missing? Assume I have included and referenced necessary dlls.

public DropDownPlaceholderControl()
{
this.ddlAuthoringControl = new DropDownList();
this.ddlAuthoringControl.ID = "DDLAuthoringControl";
this.ddlAuthoringControl.Items.Add("<content>Item 1</content>");
this.ddlAuthoringControl.Items.Add("<content>Item 2</content>");
}

Thanks for your time and help.

Varad
Back to top
Stefan [MSFT]
Guest





Posted: Fri Jan 07, 2005 5:28 pm    Post subject: Re: Q on Creating a Drop-Down List Placeholder Control Reply with quote

Hi Varad,

to translate C# to VB.NET you could use one of the following automated tools
listed here:
http://blogs.msdn.com/stefan_gossner/archive/2004/04/06/108512.aspx

Cheers,
Stefan.


"Varad" <varasani@gmail.com> wrote in message
news:619EC975-58D2-4181-8557-859FAE6A4C46@microsoft.com...
Quote:
I looked at this sample on CMS documentation. This chapter is titled
Creating
a Drop-Down List Placeholder Control in the CMS Site Development Help
Guide.
I'm re-writing the example in VB.net. There is this one line which I
dont
understand what it means to translate to Vb.Net
[ SupportedPlaceholderDefinitionType(
typeof(XmlPlaceholderDefinition) ) ]

After this line, in this function when I used 'me' instead of 'this', but
I
didnt see ddlAuthoringControl in Intellisense in Visual Studio when I
typed
'me.'. It means the control ddlAuthoringControl is not visible right? What
am
I missing? Assume I have included and referenced necessary dlls.

public DropDownPlaceholderControl()
{
this.ddlAuthoringControl = new DropDownList();
this.ddlAuthoringControl.ID = "DDLAuthoringControl";
this.ddlAuthoringControl.Items.Add("<content>Item 1</content>");
this.ddlAuthoringControl.Items.Add("<content>Item 2</content>");
}

Thanks for your time and help.

Varad
Back to top
Varad
Guest





Posted: Fri Jan 07, 2005 9:47 pm    Post subject: Re: Q on Creating a Drop-Down List Placeholder Control Reply with quote

Thanks a lot Stefan. You are great!

"Stefan [MSFT]" wrote:

Quote:
Hi Varad,

to translate C# to VB.NET you could use one of the following automated tools
listed here:
http://blogs.msdn.com/stefan_gossner/archive/2004/04/06/108512.aspx

Cheers,
Stefan.


"Varad" <varasani@gmail.com> wrote in message
news:619EC975-58D2-4181-8557-859FAE6A4C46@microsoft.com...
I looked at this sample on CMS documentation. This chapter is titled
Creating
a Drop-Down List Placeholder Control in the CMS Site Development Help
Guide.
I'm re-writing the example in VB.net. There is this one line which I
dont
understand what it means to translate to Vb.Net
[ SupportedPlaceholderDefinitionType(
typeof(XmlPlaceholderDefinition) ) ]

After this line, in this function when I used 'me' instead of 'this', but
I
didnt see ddlAuthoringControl in Intellisense in Visual Studio when I
typed
'me.'. It means the control ddlAuthoringControl is not visible right? What
am
I missing? Assume I have included and referenced necessary dlls.

public DropDownPlaceholderControl()
{
this.ddlAuthoringControl = new DropDownList();
this.ddlAuthoringControl.ID = "DDLAuthoringControl";
this.ddlAuthoringControl.Items.Add("<content>Item 1</content>");
this.ddlAuthoringControl.Items.Add("<content>Item 2</content>");
}

Thanks for your time and help.

Varad


Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB