SharePoint Designers

All about Branding & Customizations in SharePoint

Hi, do anyone know if there´s a trick to get the default value visible in a page who are connected to a Pagelayout, when you use a custom SharePointWebControls in your pagelayout? I use a yes or no, and want a default value (yes) to be pre populated so do need to mark Yes evertime..

Views: 702

Reply to This

Replies to This Discussion

Try this:
select the asp:dropdownlist in your aspx page
populate it with yes, no or whatever you want by clicking on common dropdownlist tasks
choose edit items (this is where you will populate the dropdown
which ever one you want to be the default setting set by changing "Selected" to true
choose OK
look at the tag properties and change "AppendDataBoundItems" to True
save
this will set a value you choose to the default value.
Hi Paul, thanks for you answere!
The thing is that i want to use the 'SharePointWebControls:DropDownChoiceField', the column from the content type i use into a pagelayout. I think i cannot use the asp:dropdownfield here, or..?

Reply to Discussion

RSS

Events

Birthdays

© 2013   Created by Christian Ståhl.

Badges  |  Report an Issue  |  Terms of Service