dynamic controls

P

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
 
D

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top