SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to be able to reference the inner controls of SharePoint’s (WSS 3.0) SchedulePicker control. I have this (simplified) in my application page:

<%@ Page EnableViewState="true" Language="vb" MasterPageFile="~/_layouts/application.master" Inherits="Microsoft.SharePoint.WebControls.LayoutsPageBase" %>

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="SchedulePicker" src="~/_controltemplates/SchedulePicker.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderMain" runat="server" >
<wssuc:SchedulePicker id="picker" runat="server" Weekly="True" Monthly="True" Enabled="True" /></wssuc:SchedulePicker>

This renders perfectly and I get amongst other things a drop down box containing 1st, 2nd, 3rd … 30th 31st. What I want to do is to be able to reference this control (called DdlSPDayOfMonth) in .NET code to retrieve the value that the user entered EG. 12th. I can’t work out how to do it. Can anyone help?

share|improve this question
up vote 2 down vote accepted

The SchedulePicker control generates a string similar to how a Windows Scheduled Task schedule string works. You can access it with:

Scheduler.ScheduleString = job.Schedule.ToString();
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.