I am trying to program my first webpart based on this:
This webpart must show people who have birthdays on particular day of the month. There should be a button for each month (and one for "whole year) and button for each day (and one for "whole month") and so user can choose to show only those with birthdays
in say, april 23, or whole june...
I did it this way:
Following the tutorial, i create all my controls inside the CreateChildControls() and i store references to them as properties of the webpart class. Also the class (public class BirthdayFullScreenWebPart) has properties (int chosen_month) and (int
Then i have have onclick for buttons that changes the chosen month and/or day web part property, based on which button was clicked.
Then i have a function "UpdateUserList" that ouptuts list of users into the webpart's table control, based on the chosen month and day. this function is called inside createchidlcontrols after all of them are created, and inside onclicks when the month/day
What i got is that the values of the variables were behaving really odd.
In my mind, it
View Complete Post