PC Review


Reply
Thread Tools Rating: Thread Rating: 3 votes, 1.00 average.

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

 
 
Priya Ghate
Guest
Posts: n/a
 
      12th Jan 2004
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


 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      12th Jan 2004
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
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to include aspx without directive? Franz Microsoft ASP .NET 5 31st Jan 2006 03:55 PM
include in aspx Alex Microsoft ASP .NET 0 7th Jun 2005 06:04 AM
INCLUDE in ASPX Luboš Šlapák Microsoft C# .NET 2 26th Nov 2004 05:39 AM
include page/ aspx chris leeds Microsoft Frontpage 1 6th Feb 2004 02:27 AM
include other aspx/html in my aspx page Mr. x Microsoft ASP .NET 1 30th Nov 2003 11:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:32 AM.