Adding a include statement in default.aspx - help !!

P

Priya Ghate

Hi,

I have some code that is redundant in the default.aspx file. Is there a way
in which I could keep the redundant code in a .aspx or .inc file and
reference it from my default.aspx page of my main portal site ? Also if
other subsites within the main portal sites want to access that file will
they be able to do so ? Could someone point me to a code snippet or link on
the web.

Help will be highly appreciated.

Thanks in advance,
Priya
 
K

Kevin Spencer

ASP.Net is object-oriented, and as a rule you should avoid using server-side
includes in ASP.Net pages. This is usually done with User Controls and/or
Inheritance. But you really should ask such questions in the ASP.Net
newsgroup.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top