M
MA
Hi!
I have this code in a class called activity:
public Button[] getActivity(DateTime startDate, DateTime endDate)
{
TimeSpan ts = endDate-startDate;
int arraySize = ts.Days;
Button[] btnActivity = new Button[arraySize];
return btnActivity;
}
that I call with this:
activity objActivity = new activity();
Button[] btnActivity = objActivity.getActivity(DateTime.Today,
DateTime.Today.AddDays(6));
Is there a way to set for example onClick events, css, button text on each
button in the array before I call it (in getActivity)?
/Marre
I have this code in a class called activity:
public Button[] getActivity(DateTime startDate, DateTime endDate)
{
TimeSpan ts = endDate-startDate;
int arraySize = ts.Days;
Button[] btnActivity = new Button[arraySize];
return btnActivity;
}
that I call with this:
activity objActivity = new activity();
Button[] btnActivity = objActivity.getActivity(DateTime.Today,
DateTime.Today.AddDays(6));
Is there a way to set for example onClick events, css, button text on each
button in the array before I call it (in getActivity)?
/Marre