| Author |
Message |
Varad
Guest
|
Posted:
Fri Jan 07, 2005 9:09 am Post subject:
Q on Creating a Drop-Down List Placeholder Control |
|
|
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 |
|
|
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 |
|
|
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 |
|
 |
|
|
|
|