Is it possible to call an .ascx control from an .ascx page?

Nov 20 2008 4:08 PM

Hi,

Is it possible to call an .ascx control from an .ascx page?

For example, I have the following code in a .ascx file:

<a href="../../HeadQuarters.aspx">

<a href="../../Processing.aspx">

<a href="../../Storage.aspx">

I had to create these .aspx files in order to get the href's to work. The problem is that they all contain the exact same code with a few exceptions. I would like to call each .ascx control file within the one.ascx file.

Using VS.net 2008

3.5 Framework

Any assistance you can provide would be greatly helpful.

Thanks!


Answers (2)