Z
Zac Maclean
We are working on a calendar event list in ASP.NET 2.0 using VWDE.
On load we create a calendar control, and a pair of nested DataLists.
the outer DataList fills from a name list from SQL 2000 query. The inner
list takes the name from each item in the outer list, and creates a task
list for each person. On initial load, the task lists are empty. We want to
do is set a default value <%# DateTime.Now %> for one of the parameters in
the second query that fills the task list.
Code Line:
<asp:ControlParameter ControlID="Calendar1" Name="DUEDATE"
PropertyName="SelectedDate" Type="DateTime" DefaultValue='<%# DateTime.Now
%>' />
does not work. Neither does trying to assign a value in the code black, as
the control has not been created yet. We have also tried inserting a code
block inside the document just behind the control creation, but it does not
work.
If we need to change to a "code behind" page style that is ok, but I'd
rather try to keep in the overall .NET 2.0 framework defaults.
TIA
Z
On load we create a calendar control, and a pair of nested DataLists.
the outer DataList fills from a name list from SQL 2000 query. The inner
list takes the name from each item in the outer list, and creates a task
list for each person. On initial load, the task lists are empty. We want to
do is set a default value <%# DateTime.Now %> for one of the parameters in
the second query that fills the task list.
Code Line:
<asp:ControlParameter ControlID="Calendar1" Name="DUEDATE"
PropertyName="SelectedDate" Type="DateTime" DefaultValue='<%# DateTime.Now
%>' />
does not work. Neither does trying to assign a value in the code black, as
the control has not been created yet. We have also tried inserting a code
block inside the document just behind the control creation, but it does not
work.
If we need to change to a "code behind" page style that is ok, but I'd
rather try to keep in the overall .NET 2.0 framework defaults.
TIA
Z