Hi,
I'm trying to write a DB actions class for my web project to help reduce code duplication for example I want to show a dropdownlist with countries, populated from my DB, on more than one page, so instead of writing the code in each required page I thought that if I put it in a class I could then call a function i.e. populateCountriesDDL when required.
Does anyone know how to do this? Am I going about this the correct way or is there a better solution, with classic asp I would create an asp include file and add it in wherever needed
I've tried referencing
VB Code:
Imports System.Web.UI Imports System.Web.UI.HtmlControls Imports System.Web.UI.WebControls
but get error message - namespace could not be found for each of the above
Thought I could pass the function the DDL and populate it from there?
Any help will be greatly appreciated
Cheers Al




Reply With Quote