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.
"Priya Ghate" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>
|