Home All Groups Group Topic Archive Search About
Author
5 Apr 2006 9:59 PM
pduncan
I'm creating a calendar control in  Page_Init, setting it's date, and
adding a handler to it


Dim bdp9 As BasicFrame.WebControls.BasicDatePicker = New
BasicFrame.WebControls.BasicDatePicker

bdp9.DisplayType = BasicFrame.WebControls.DisplayType.Button
bdp9.SelectedDate = DateTime.Today

bdp9.AutoPostBack = True

AddHandler bdp9.SelectionChanged, AddressOf test

What I would like to have happen is for the event code "test" to get
processed before the page_init code fires again on a postback

Any ideas?
Thanks,
Paul

Author
6 Apr 2006 3:45 PM
DWS
Paul,
A partial help for you.  If your adding a handler manually you have to add
it on every postback or the event won't fire.

Is that the new web site template stuff your using?

Good Luck
DWS



Show quoteHide quote
> I'm creating a calendar control in  Page_Init, setting it's date, and
> adding a handler to it
>
>
>
> bdp9.DisplayType = BasicFrame.WebControls.DisplayType.Button
> bdp9.SelectedDate = DateTime.Today
>
> bdp9.AutoPostBack = True
>
> AddHandler bdp9.SelectionChanged, AddressOf test
>
> What I would like to have happen is for the event code "test" to get
> processed before the page_init code fires again on a postback
>
> Any ideas?
> Thanks,
> Paul
>
>