rotsey
Newcomer
HI
I am learnig asp.net custom server controls and have a design issue problem.
I am designing a composite control that firstly display a textbox to enter a suburb and then a button that when clicked displays a list of customers in the suburb.
So in CreateChildControls sub I create a textbox and a button. I add a handler for the button. All OK.
So when user clicks the button a what to bind to a datasource and build the list. I put this in the DataBind() sub and call it from the button event handler.
Now I want to be able to have a "Prev/Next" buttons so user can page through list so I add 2 linkbuttons and add hanlders for them.
The problem is the event hanlders for the Prev/Next are not being called when user clicks them.
They are being created in the DataBind sub.
Can anyone let me know if the design is wrong or how I can get the Next/Prev link buttons to call there eventhandlers.
Thanks
Rotsey.
I am learnig asp.net custom server controls and have a design issue problem.
I am designing a composite control that firstly display a textbox to enter a suburb and then a button that when clicked displays a list of customers in the suburb.
So in CreateChildControls sub I create a textbox and a button. I add a handler for the button. All OK.
So when user clicks the button a what to bind to a datasource and build the list. I put this in the DataBind() sub and call it from the button event handler.
Now I want to be able to have a "Prev/Next" buttons so user can page through list so I add 2 linkbuttons and add hanlders for them.
The problem is the event hanlders for the Prev/Next are not being called when user clicks them.
They are being created in the DataBind sub.
Can anyone let me know if the design is wrong or how I can get the Next/Prev link buttons to call there eventhandlers.
Thanks
Rotsey.