I used to use <!--#include virtual="blah.asp"--> to reuse code. In particular, I have some controls on a web page for a search form (countries, states, etc) that are the same all the time. My thought was to use the same method i used to (of course aspx now) and have the included file print the dropdownlist (taken from SQL). So, say, in countries.aspx, i have it read the data from the sql server, and generate and asp:dropdownlist, and asp:listitems for all the countries. I did this, included the file, and called the function. It worked in so much as it printed my entries, but it didn't compile the asp:dropdownlist to be a selectbox in the browser... so what i don't know is if I just changed the included file to print a select box, and not an asp:dropdownlist. How would that affect the runat=server aspect of it, etc.
thoughts?
THANKS.
thoughts?
THANKS.