Usercontrol or something else?

  • Thread starter Thread starter Mat
  • Start date Start date
M

Mat

Hi,

I have a "DropDownList" that is bound to sql which is used on multiple
(but not all) pages.

I would like to code the logic only once and reuse it throughout the
site. Would it be better to write a user control and then call that
everytime I need the dropdown or is there a better solution?

Many thanks,
Mat.
 
Assuming that the drop-down list always has the same data in it, you could
store a DataTable in Application Cache, and rather then using a custom
control, just bind drop-down lists to it when you need to.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Back
Top