Ref:
http://community.zevenseas.com/Blogs/Robin/Lists/Posts/Post.aspx?ID=96
1.SPDatePickerControl:
2.ButtonSection
3.InputFormRequiredFieldValidator
4.InputFormRangeValidator
ToolBar & ToolBarButton
Button:
<%@ Register TagPrefix="wssuc" TagName="ButtonSection"
src="~/_controltemplates/ButtonSection.ascx" %>
<wssuc:ButtonSection runat="server">
<Template_Buttons>
<asp:Button runat="server" class="ms-ButtonHeightWidth"
OnClick="OnClickOK" Text="<%$Resources:wss,multipages_okbutton_text%>"
id="btnOk" accesskey="<%$Resources:wss,okbutton_accesskey%>"/>
</Template_Buttons>
</wssuc:ButtonSection>
When making use of the LayoutsPageBase in your codebehind, you can define the URL of the Cancel button by using this snippet:
public override string PageToRedirectOnCancel
{
get
{
//return base.PageToRedirectOnCancel;
return "/_layouts/settings.aspx";
}
}
<script type="text/javascript"src="/_layouts/datepicker.js"></script><SharePoint:SPDatePickerControl id="datePickerControl"runat="server"/>
No comments:
Post a Comment